Forum Discussion

hemann's avatar
hemann
Helper I
4 years ago
Solved

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 

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

 

  • hemann 

    Give this a try.

     

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

     

     

2 Replies

  • hemann 

    Give this a try.

     

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