Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Guys,
I am on a report and I would like to calculate the evolution between two figures (These figures are from Measures).
Solved! Go to Solution.
Hi @mairiau ,
Please try to use this one.
= VAR a = [Last Assortment 2017] + 0 VAR b = [Last Assortment 2018 ] + 0 RETURN IF ( a <> 0 && b <> 0, [Last Assortment 2018] - [Last Assortment 2017], BLANK () )
Hi @mairiau ,
Try this one please.
= IF ( [Last Assortment 2017] = BLANK () || [Last Assortment 2018 ] = BLANK (), - [Last Assortment 2018]-[Last Assortment 2017], BLANK () )
Try this and let me know
= IF( Last Assortment 2017 <> 0, IF( Last Assortment 2018 <> 0, ([Measure Latest RP 2018]-[Measure lastest RP 2017], 0), 0)
Hello,
Nice, we just have a problem with the formula, Power Bi does not seem to make the difference between zero and blank (cf picture). Do we need to change the formula of assortment last visit ?
Thanks in advance.
Hi @mairiau ,
Please try to use this one.
= VAR a = [Last Assortment 2017] + 0 VAR b = [Last Assortment 2018 ] + 0 RETURN IF ( a <> 0 && b <> 0, [Last Assortment 2018] - [Last Assortment 2017], BLANK () )
I would be slightly more explicit, because an actual data value of zero might be possible.
Evolution 2018/2017 = CALCULATE( ([Measure Latest RP 2018]-[Measure lastest RP 2017]),
FILTER('Table1',
'Table1'[Last assortment 2017] <> BLANK() &&
'Table1'[Last assortment 2018] <> BLANK()
)
)