Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All()
Considering I have the following column chart:
Where the category in the axis is Age Range, and the values on each column are actually a measure the counts the number of a certain group of people falling in those categories (it is actually a very simple measure).
I want a card that returns the category with the largest amount of people on it. Considering the chart above, the card would return "De 20 a 30". As simple as that.
Any thoughts?
Solved! Go to Solution.
Hi,
Try utilizing MAXX:
e.g.
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
Try utilizing MAXX:
e.g.
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Dear @ValtteriN
The solution you provided works well, Thank you SO MUCH for your prompt response 😃
I chose to author the measure a bit different, with an ADDCOLUMNS statement surrounding the measure. (Marco Russo and Alberto Ferrari say this is a best practice in some cases. Please refer to this video https://www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/).
Thank you so much once again! Going accept this as a solution and connect with you on Linkedin.
Regards!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |