Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hello ,
i have use some measure for _Actual Cost & contribution Rank bottom that is cantains rank i need to find only top 5 rank but
i was use option wich is in field that give me only one row,,
_Actual cost sum = SUM(YTD2[Actual Cost])
_Actual Contribution avg = AVERAGE(YTD2[Actual Contribution %])
_Actual Cost & contribution Rank bottom = RANKX(
ALLSELECTED( YTD2 ),
[_Actual Contribution avg],,ASC
) + DIVIDE (
RANKX ( ALLSELECTED(YTD2), [_Actual cost sum],,DESC),
( COUNTROWS ( ALL ( YTD2 ) ) + 1 )
)
this is some what i use
regards
pooja
Solved! Go to Solution.
Hi Poojad1,
To achieve your requirement, please use DAX formula below:
_Actual Cost & contribution Rank bottom = var temp = RANKX( ALLSELECTED( YTD2 ), [_Actual Contribution avg],,ASC ) + DIVIDE ( RANKX ( ALLSELECTED(YTD2), [_Actual cost sum],,DESC), ( COUNTROWS ( ALL ( YTD2 ) ) + 1 ) ) return IF(temp < 6, temp, BLANK())
You can refer to PBIX here:
https://www.dropbox.com/s/hzt2jwi9tt4pexl/For%20Poojad1.pbix?dl=0
Regards,
Jimmy Tao
Hi Poojad1,
To achieve your requirement, please use DAX formula below:
_Actual Cost & contribution Rank bottom = var temp = RANKX( ALLSELECTED( YTD2 ), [_Actual Contribution avg],,ASC ) + DIVIDE ( RANKX ( ALLSELECTED(YTD2), [_Actual cost sum],,DESC), ( COUNTROWS ( ALL ( YTD2 ) ) + 1 ) ) return IF(temp < 6, temp, BLANK())
You can refer to PBIX here:
https://www.dropbox.com/s/hzt2jwi9tt4pexl/For%20Poojad1.pbix?dl=0
Regards,
Jimmy Tao
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |