Forum Discussion
Anonymous
8 years agoNot applicable
Custom ranking (preassigned values)
Hi Power BI Guru's, I am not a programmer & new to Pwer BI. I seek your help in a custom solution to ranking my data under "Matrix" visualization which I am building for Top 50/100 or 300 custom...
- 8 years ago
Hi Anonymous
If you are looking for a MEASURE, you can use this formula
RANK_Measure = IF ( SELECTEDVALUE ( TableName[Customer] ) = "Multiple Customers", 301, RANKX ( FILTER ( ALL ( TableName ), TableName[Financial Year] = SELECTEDVALUE ( TableName[Financial Year] ) && TableName[Customer] <> "Multiple Customers" ), CALCULATE ( SELECTEDVALUE ( TableName[Values USD] ) ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
Hi Anonymous
If you are looking for a MEASURE, you can use this formula
RANK_Measure =
IF (
SELECTEDVALUE ( TableName[Customer] ) = "Multiple Customers",
301,
RANKX (
FILTER (
ALL ( TableName ),
TableName[Financial Year] = SELECTEDVALUE ( TableName[Financial Year] )
&& TableName[Customer] <> "Multiple Customers"
),
CALCULATE ( SELECTEDVALUE ( TableName[Values USD] ) )
)
)Anonymous
8 years agoNot applicable
Hi Zubair_Muhammad, Thanks for this help. I will check it over this weekend, since PBI is new to me & hence I am slow in using it, I will take leisure time to learn & absorb. Will reply you on Sunday. Thanks Again !!