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.
I need help with a dax, the dax at present is
Solved! Go to Solution.
IF(isblank(from Ytd),"100"%, if(isblank(to ytd),"-100",DIVIDE([To Year Sales]-[Sales Amount],[Sales Amount])*100)
Try this!
Proud to be a Super User!
@Avivek Try this:
YOY Sales Growth details % =
Var result_ = if([To Year Sales]>0,DIVIDE([To Year Sales]-[Sales Amount],[Sales Amount])*100)
RETURN SWITCH(TRUE(),
[From YTD]=BLANK(), 100,
[To YTD]=BLANK(),-100,
result_
)
IF(isblank(from Ytd),"100"%, if(isblank(to ytd),"-100",DIVIDE([To Year Sales]-[Sales Amount],[Sales Amount])*100)
Try this!
Proud to be a Super User!
Wow, @VijayP , thankyou, i was tryig similar measure but now I can see what was the mistake i made. Thankyou for your help.