Forum Discussion
measure difference in percentage from same measures
- 8 years ago
HI jurgenvd
Try adding this MEASURE.
Bascially for each row it is intended to give you the [Incidents Opened]....For total....the difference between max and highest week
Measure = IF ( HASONEVALUE ( TableName[WeekNumber] ), [Incidents Opened], CALCULATE ( [Incidents Opened], FILTER ( ALLSELECTED ( TableName[WeekNumber] ), TableName[WeekNumber] = MAX ( TableName[WeekNumber] ) ) ) - CALCULATE ( [Incidents Opened], FILTER ( ALLSELECTED ( TableName[WeekNumber] ), TableName[WeekNumber] = MIN ( TableName[WeekNumber] ) ) ) ) - 8 years ago
Please give this a shot
Measure = IF ( HASONEVALUE ( TableName[WeekNumber] ), [Incidents Opened], ROUND ( ( CALCULATE ( [Incidents Opened], FILTER ( ALLSELECTED ( TableName[WeekNumber] ), TableName[WeekNumber] = MAX ( TableName[WeekNumber] ) ) ) / CALCULATE ( [Incidents Opened], FILTER ( ALLSELECTED ( TableName[WeekNumber] ), TableName[WeekNumber] = MIN ( TableName[WeekNumber] ) ) ) - 1 ) * 100, 1 ) & "%" )
Hi Siva,
that's correct,
With quick measures there are possibilities but not when it's coming from same data source.
Thanks
HI jurgenvd
Try adding this MEASURE.
Bascially for each row it is intended to give you the [Incidents Opened]....For total....the difference between max and highest week
Measure =
IF (
HASONEVALUE ( TableName[WeekNumber] ),
[Incidents Opened],
CALCULATE (
[Incidents Opened],
FILTER (
ALLSELECTED ( TableName[WeekNumber] ),
TableName[WeekNumber] = MAX ( TableName[WeekNumber] )
)
)
- CALCULATE (
[Incidents Opened],
FILTER (
ALLSELECTED ( TableName[WeekNumber] ),
TableName[WeekNumber] = MIN ( TableName[WeekNumber] )
)
)
)- jurgenvd8 years ago
Helper I
Thank you for your help.
I have tested the measure that you made for me, but it's just returning the same values as "incidents opened"
- Zubair_Muhammad8 years ago
Community Champion
Even for the total row??.... Total row is not visible in your picture
Could you share your file?
- jurgenvd8 years ago
Helper I
Thanks for the Big Help,
you are right, when i added the totals it was showing the difference, now just find out how to represent the number in Percentages.
Many Thanks