The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I know this is a very simple formula but I am not able to incorporate it in Power BI. Please help
IF ZN(SUM([TotalSales])) - LOOKUP(ZN(SUM([TotalSales])), -1)>0 THEN 'Surplus'
ELSE 'Deficit'
END
Thank you in advance!
Solved! Go to Solution.
IF (
ISBLANK(SUM([TotalSales])) - CALCULATE(SUM([TotalSales]), PREVIOUSMONTH('Table'[Date])) > 0,
"Surplus",
"Deficit"
)
Proud to be a Super User! | |
IF (
ISBLANK(SUM([TotalSales])) - CALCULATE(SUM([TotalSales]), PREVIOUSMONTH('Table'[Date])) > 0,
"Surplus",
"Deficit"
)
Proud to be a Super User! | |