March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I am trying to write a dax formula to get the highest sales value and the age group into multi row card in my dashboard. Really appreciate If anyone can anyone assist me on this please.
The test case shown as below.
Thank you!
Thilini
Solved! Go to Solution.
@Thilini Hard to say with that information, looks like a Lookup Min/Max issue:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
For a more specific solution, please post sample source table data as text in a table. Thanks.
@Thilini , top 1
Top 1 Age Group = CALCULATE([Sales],TOPN(1,all(Table[Age Group]),[Sales],DESC),VALUES(Table[Age Group]))
Hi @amitchandak ,
Thank you for your solution. It works fine.
But only address part of my question. I use it to get the sales value of the top 1 age group.
Really appreciate your help.
Kind Regards,
Thilini
@Thilini Hard to say with that information, looks like a Lookup Min/Max issue:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
For a more specific solution, please post sample source table data as text in a table. Thanks.
Hi @Greg_Deckler,
I tried your solution. It works perfectly fine. I get both name of the top 1 age group as well as the top 1 sales value.
Thank you so much!
Kind Regards,
Thilini
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
29 | |
12 | |
11 |