Forum Discussion
Anonymous
4 years agoNot applicable
Measures with Slicer (Edit Interaction)
Hello everybody, I'm stuck trying to solve a question that seems simple, but it's been giving me a bit of work. Imagine that I have a table with: - Year - Month - Ticket number I created so...
- 4 years ago
Hi Anonymous ,
Please try these measure.
Current Year Value = CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( ALL ( 'Table' ), 'Table'[Date].[Year] = MAX ( 'Table'[Date].[Year] ) ) )% Participation Month/Year = DIVIDE ( SUM ( 'Table'[Value] ), [Current Year Value] )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
4 years agoAnonymous , Better to have a separate month year table(Say Date) with key Year, month and columns of month and year too
Then year value
calculate(Count(Table[Ticket Number]), filter(all(Date), Date[Year] = max(Date[Year]) ) )
year value with same table
calculate(Count(Table[Ticket Number]), filter(all(Table), Table[Year] = max(Table[Year]) ) )