Forum Discussion
grasa
Helper I
1 year agoShow Diff PY just once
Dear all, I would like to show a qty vs. previous year qty comparison. Therefore I already created a measure which calculates the % diff to last year. Do you have any idea how I could remove the ...
v-sdhruv
Community Support
1 year agoHi grasa ,
This might be because" January 2025 has no corresponding January 2024 data in your dataset." as earlier stated by jaineshp
As per the measure, it will show blank() but you can modify the measure by using:
Diff % LY Modified =
IF (
YEAR ( MAX ( 'DateTable'[Date] ) ) <> 2025,
BLANK(),
IF (
ISBLANK ( [Gesamtmenge] ) || ISBLANK ( [LY Menge] ),
BLANK(),
DIVIDE ( [Gesamtmenge] - [LY Menge], [LY Menge] )
)
)
This ensures the measure only returns values for 2025
Hope this helps!