Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
How do I calculate the count the Customers to get the top popular Meal Type?
Thank you!
Solved! Go to Solution.
Popular Meal =
CONCATENATEX (
TOPN (
1,
ADDCOLUMNS (
VALUES ( 'Table'[Meal Type] ),
"@Customers", CALCULATE ( COUNTROWS ( 'Table' ) )
),
[@Customers]
),
[Meal Type],
", "
)
In case you have ties in the 1st rank it will show them seperated with ", "
Hope that helps
Hi,
Write these measures
Customer count = countrows(Table)
Measure = CONCATENATEX(TOPN(1,Data,[Customer count]),Data[Meal Type],", ")
Popular Meal =
CONCATENATEX (
TOPN (
1,
ADDCOLUMNS (
VALUES ( 'Table'[Meal Type] ),
"@Customers", CALCULATE ( COUNTROWS ( 'Table' ) )
),
[@Customers]
),
[Meal Type],
", "
)
In case you have ties in the 1st rank it will show them seperated with ", "
Hope that helps
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |