Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I'm trying to create a chart showing the top 5 categories by combined value, regardless of how many transactions make up the combined value. Right now when I put a top 5 filter on the visual, it shows the values for the top 5 transactions grouped by category, but these are often spread across only 3 or 4 categories.
Do I have to pre-aggregate this data in a table in SQL or elsewhere in PBI before creating this chart? Or is there a way using different filtering or DAX that I can achieve this?
Cheers
Solved! Go to Solution.
Never mind, Chat GPT helped. It suggested making a combined value measure by summarising to a table first, then iterating over that with a SUMX:
CombinedCategoryValue = SUMX(SUMMARIZE('Data', 'Data'[Category], "Category", SUM('Data'[Value])), [Category])
Then, applying the top N filter to this field (and 'by' this field too) gives the correct number of categories in the visual.
Never mind, Chat GPT helped. It suggested making a combined value measure by summarising to a table first, then iterating over that with a SUMX:
CombinedCategoryValue = SUMX(SUMMARIZE('Data', 'Data'[Category], "Category", SUM('Data'[Value])), [Category])
Then, applying the top N filter to this field (and 'by' this field too) gives the correct number of categories in the visual.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 48 | |
| 35 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |