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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NILU090
Helper II
Helper II

latest non blank values

Hi Team,Please find the datamodel and output that i require.
I want show difference between current value and last non blank value.

I tried NONBLANKVALUE, howeve its not working. 

please help me on this.

 

NILU090_0-1682064251342.png

 

1 REPLY 1
johnt75
Super User
Super User

Try

Diff with previous =
VAR CurrentDate =
    MAX ( 'Date'[Date] )
VAR CurrentValue =
    SELECTEDVALUE ( 'Fact'[Value] )
VAR PrevValue =
    CALCULATE (
        LASTNONBLANKVALUE ( 'Fact'[Date], 'Fact'[Value] ),
        'Date'[Date] < CurrentDate
    )
RETURN
    CurrentValue - PrevValue

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.