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]) )
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.