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.
Solved! Go to Solution.
Hi @EllenG ,
Just as amitchandak mentioned,Wrongly place parenthesis.
the following data,base data:
If you want to determine if there is an Amount greater than 0 for that day and output the date if there is, then use the following measure,just what amitchandak provided:
LastOrdered = CALCULATE(max(Sales[Delivery Date]),filter(Sales, Sales[Amount]>0))
If you want to get the largest date of all dates with amount > 0, then use the following measure:
LastOrdered = CALCULATE(max(Sales[Delivery Date]),filter(ALL(Sales), Sales[Amount]>0))
Wish it is helpful for you!
Best Regards
Lucien
Hi @EllenG ,
Just as amitchandak mentioned,Wrongly place parenthesis.
the following data,base data:
If you want to determine if there is an Amount greater than 0 for that day and output the date if there is, then use the following measure,just what amitchandak provided:
LastOrdered = CALCULATE(max(Sales[Delivery Date]),filter(Sales, Sales[Amount]>0))
If you want to get the largest date of all dates with amount > 0, then use the following measure:
LastOrdered = CALCULATE(max(Sales[Delivery Date]),filter(ALL(Sales), Sales[Amount]>0))
Wish it is helpful for you!
Best Regards
Lucien