This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I am wanting to create a table visual (as per below) for Top 5 series with measures. I have been successful except for 'most active state' calculation (refer circled). Below is the data used to summarise the table. It takes top 5 series (based on qty), total quantity for that series, most active state quantity, and the most active state (based on quantity).
I have tried using Maxx to bring most active state without luck. Please help
| Series | State | Volume |
| A | NSW | 21 |
| A | SA | 60 |
| A | VIC | 7 |
| B | VIC | 50 |
| C | NSW | 10 |
| D | NSW | 7 |
| E | NSW | 22 |
| E | QLD | 177 |
| F | VIC | 19 |
| G | NSW | 50 |
| H | NSW | 10 |
| I | NSW | 19 |
| I | VIC | 1950 |
| J | NSW | 820 |
| J | VIC | 7 |
| K | QLD | 11 |
| L | NSW | 14 |
| M | SA | 8 |
| N | NSW | 16 |
| N | VIC | 155 |
Solved! Go to Solution.
Give this a try.
Most Active State =
FIRSTNONBLANK (
TOPN ( 1, VALUES ( 'Table'[State] ), CALCULATE ( SUM ( 'Table'[Volume] ) ) ),
1
)
Thanks worked a treat
Give this a try.
Most Active State =
FIRSTNONBLANK (
TOPN ( 1, VALUES ( 'Table'[State] ), CALCULATE ( SUM ( 'Table'[Volume] ) ) ),
1
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 25 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 26 | |
| 20 | |
| 19 |