The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
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