Hello!, this is my first question for the PBI Community, I have tried many solutions posted in here but for some reason, none of them seems to work in my case, thanks in advance.
I need to have a calculated column that ranks de "Shipping_Line" by "Container_Volume" in order to add this as a filter so the DONUT CHART and table only shows the top 10 Shipping Lines for each Business_Unit.
Table name: Vol_TEUS
These are the formulas I have tried with no success:
RANKX(FILTER(Vol_TEUS,Vol_TEUS[Shipping_Line] = EARLIER(Vol_TEUS[Shipping_Line])),Vol_TEUS[Container_Volume],,ASC,Dense)
Solved! Go to Solution.
For the data that you have shared, show the expected result in a simple Table. From there, we can always build a pie chart.
@amitchandak Thank you, i have actually solved the "making a rank" issue.
@Ashish_Mathur Thank you!, find the example data below:
Actual Result Using = (RANKX(FILTER(Vol_TEUS,Vol_TEUS[Shipping_Line]=EARLIER(Vol_TEUS[Shipping_Line])),[Container_Volume],,ASC,Dense))
Desired Result = Rank by Container_Volume per Business_Unit
|Bussines_Unit||Shipping_Line||Container_Volume||Actual Result||Desired Result|
I'd like to add that calculated column to the "page filters" in order to selec only the TOP 10 or TOP 5, which are different for each Business Unit.
The best you refer to the first link. It has been explained in details
For Rank Refer these links
But the top 10 is different for each Business Unit.
Example: I have a "Chiclet slicer" visualization with the name of the companies, and I would like that to sync and show the top 10 per each company.
I already have this measure:
Container_Volume total for Shpping Line = CALCULATE( SUM('Vol_TEUS'[Container_Volume]), ALLSELECTED('Vol_TEUS'[Shipping Line]) )
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!