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 August 31st. Request your voucher.
Hello
I am working on a measure to calculate the gross sales of our products, below my measures :
Thanks in advance for your help
Solved! Go to Solution.
Hello
thanks for your answer
I solved the issue :
the code for the measure TMS_LE] is as below
I checked the data for each table and found that the measure G_TMS_LE is not working for the lines where F_TMS_Fcst is null, even though TMS_LE is working
G_TMS_LE = SUMX(F_TMS_Fcst,F_TMS_Fcst[TMS_Prices]*F_TMS_Fcst[TMS_LE])
Replacing null by 0 made the trick. I should have known this but I am still a novice 😛
Hi @WiseFennec
Are you sure you don't have any kind of filter by month?
Try: G_TMS_LE = SUMX(VALUES(month), F_TMS_Fcst,F_TMS_Fcst[TMS_Prices]*F_TMS_Fcst[TMS_LE]))
But I don't know if it is the problem. Can you provide sample data?
Hello
thanks for your answer
I solved the issue :
the code for the measure TMS_LE] is as below
I checked the data for each table and found that the measure G_TMS_LE is not working for the lines where F_TMS_Fcst is null, even though TMS_LE is working
G_TMS_LE = SUMX(F_TMS_Fcst,F_TMS_Fcst[TMS_Prices]*F_TMS_Fcst[TMS_LE])
Replacing null by 0 made the trick. I should have known this but I am still a novice 😛