Forum Discussion
Cyriackpazhe
Helper III
1 year agoRankX
Why am i getting the output like this
Cyriackpazhe
Helper III
1 year agoI'm still getting incorrect result.Also if we do as you mentioned, won't the virtual table contain all possible combinations of year and quarter. The rank would be assigned as per its position in this entire set right
Anonymous
1 year agoNot applicable
Hi Cyriackpazhe , hello bhanu_gautam, thank you for your prompt reply!
Please try the following measure:
MeasureTotal = SUM('Table'[Total])RankX =
IF (
ISINSCOPE ( 'Table'[Date].[Quarter] ),
RANKX (
FILTER (
ALL('Table') ,
YEAR ( 'Table'[Date] ) = YEAR ( MAX ( 'Table'[Date] ) )
),[MeasureTotal],,DESC
,
DENSE
),
IF (
ISINSCOPE ( 'Table'[Date].[Year] ),
RANKX (
ALL ( 'Table' ),
CALCULATE (
SUM ( 'Table'[Total] ),
ALLEXCEPT ( 'Table', 'Table'[Date].[Year] )
),
[MeasureTotal],
DESC,
DENSE
),
BLANK ()
)
)
Result:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Cyriackpazhe1 year ago
Helper III
but why isn't the meausre i wrote working. It should be correct right
- Anonymous1 year agoNot applicable
Hi Cyriackpazhe , thank you for your feedback.
If possible, please update the sample pbix file without any sensitive information for further troubleshooting.