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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
LuizUK
New Member

Value of latest update for each measure when last update was in a different month

Hello Community,

 

What DAX function would you recommend to get the value corresponding to latest update of a list of KPIs where some of these KPIs are measured on monthly? Some are monthly, others quarterly and so on.

Note that the latest date in Last Update column is different for each metric.

I can't use a formula where the Metric is defined as a string (i.e. "A") because the metrics have long descriptions (some with more than 20 words) and my dataset has hundreds of different metrics.

 

LuizUK_0-1674574878771.png

 

The only solution I found so far is "slice" the data set in multiple smaller tables and it is getting impossible manage everything.

 

I appreciate any suggestion or ideas.

KR

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @LuizUK 

Create the following filter measure, place it in the filter pane of the table visual and select 'is not blank' then apply the filter 

FilterMeasure =
COUNTROWS (

FILTER (

'Table',

'Table'[Last Update] = CALCULATE ( MAX ( 'Table'[Last Update] ), ALLEXCEPT ( 'Table', 'Table'[Metric] ) )

)

)

View solution in original post

3 REPLIES 3
LuizUK
New Member

Hey @tamerj1  thank you so much for your response. It worked brilliantly

Any guesses on how I can use the results of this table in a card? Naturally, after I filter to have just one metric?

 

@LuizUK 
Not sure what are you trying to display in that card but you can place a measure like

Sum of MAX Values =
SUMX (
    FILTER (
        'Table',
        'Table'[Last Update]
            = CALCULATE (
                MAX ( 'Table'[Last Update] ),
                ALLEXCEPT ( 'Table', 'Table'[Metric] )
            )
    ),
    'Table'[Value]
)

Actually in this case you don't need to have the filter measure, just use this measure to filter the table visual and it should work.

tamerj1
Super User
Super User

Hi @LuizUK 

Create the following filter measure, place it in the filter pane of the table visual and select 'is not blank' then apply the filter 

FilterMeasure =
COUNTROWS (

FILTER (

'Table',

'Table'[Last Update] = CALCULATE ( MAX ( 'Table'[Last Update] ), ALLEXCEPT ( 'Table', 'Table'[Metric] ) )

)

)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.