Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone,
I want to get the top manufacturer (the actual name) by total sales. I need a metric Top Manufacturer by Sales that I can use as a KPI in my dashboard.
I have created the metric
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Rank manufacturer by sales: =
RANK (
SKIP,
ALL ( 'Dim Product'[Manufacturer] ),
ORDERBY ( CALCULATE ( SUM ( 'Fact Sales'[Revenue] ) ), DESC )
)
Rank 1 manufacturer: =
CONCATENATEX (
FILTER (
ALL ( 'Dim Product'[Manufacturer] ),
[Rank manufacturer by sales:] = 1
),
'Dim Product'[Manufacturer],
", "
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Rank manufacturer by sales: =
RANK (
SKIP,
ALL ( 'Dim Product'[Manufacturer] ),
ORDERBY ( CALCULATE ( SUM ( 'Fact Sales'[Revenue] ) ), DESC )
)
Rank 1 manufacturer: =
CONCATENATEX (
FILTER (
ALL ( 'Dim Product'[Manufacturer] ),
[Rank manufacturer by sales:] = 1
),
'Dim Product'[Manufacturer],
", "
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |