Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
hemann
Helper I
Helper I

Reference Maximum Text into table visual

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 

hemann_0-1649047381982.png

SeriesStateVolume
ANSW21
ASA60
AVIC7
BVIC50
CNSW10
DNSW7
ENSW22
EQLD177
FVIC19
GNSW50
HNSW10
INSW19
IVIC1950
JNSW820
JVIC7
KQLD11
LNSW14
MSA8
NNSW16
NVIC155

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@hemann 

Give this a try.

 

Most Active State =
FIRSTNONBLANK (
    TOPN ( 1, VALUES ( 'Table'[State] ), CALCULATE ( SUM ( 'Table'[Volume] ) ) ),
    1
)

 

jdbuchanan71_0-1649051226801.png

 

View solution in original post

2 REPLIES 2
hemann
Helper I
Helper I

Thanks worked a treat

jdbuchanan71
Super User
Super User

@hemann 

Give this a try.

 

Most Active State =
FIRSTNONBLANK (
    TOPN ( 1, VALUES ( 'Table'[State] ), CALCULATE ( SUM ( 'Table'[Volume] ) ) ),
    1
)

 

jdbuchanan71_0-1649051226801.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.