Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi
i have a data as below . Rank table 1 is calculated column, ranking the spend per country.
how can i write formula to create a visual to show spend at rank 3 for each country as below :
Link to Power BI file : Lookup Test.pbix
thanks.
Solved! Go to Solution.
To make it dynamic, change measure to capture rank by selection. Try this:
or if you want only for maximum, then you can use this:
DynamicSpendbyRank =
VAR _selectedRank = MAX('Table'[Rank table 1])
VAR _result =
CALCULATE(
SUM('Table'[Spend]),
'Table'[Rank table 1] = _selectedRank
)
RETURN
_result
Hope this helps!!
Hi @ktt777 ,
Did shafiz_p's latest workaround help you? Please accept the relpy as solution if it is helpful, thanks.
More people will benefit from it because of this.
Best Regards,
Stephen Tao
thank you. How about if i want to see the spend from the highest rank from each country, not at fixed rank 3.
To make it dynamic, change measure to capture rank by selection. Try this:
or if you want only for maximum, then you can use this:
DynamicSpendbyRank =
VAR _selectedRank = MAX('Table'[Rank table 1])
VAR _result =
CALCULATE(
SUM('Table'[Spend]),
'Table'[Rank table 1] = _selectedRank
)
RETURN
_result
Hope this helps!!
Hi @ktt777 Try this:
Spend At Rank 3 =
CALCULATE(
SUM('Table'[Spend]),
'Table'[Rank table 1] = 3
)
or you can use filter visual. See image below:
Hope this helps!!
If, Please accept it as a solution!!
Best Regards,
Shahariar Hafiz
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |