Forum Discussion
o59393
6 years agoPost Prodigy
Nested IF DAX
Hi all I need to have an if formula that returns me a value from one column (Weight in this case) based on the date ranges (start date and end date). In the example above, on the rig...
- 6 years ago
- 6 years ago
amitchandak
6 years agoSuper User
o59393 , Use this file. It has allocation between dates. You just do a copy no allocation
o59393
6 years agoPost Prodigy
Hi amitchandak
So I should go from:
Measure 2 = CALCULATE(sumx(SUMMARIZE(filter(CROSSJOIN(Sheet1,'Date'),'Date'[Date]>=(Sheet1[Start Date]) && 'Date'[Date]<=(Sheet1[End Date])),Sheet1[Contract],'Date'[Date],"_sum",sum(Sheet1[Daily Value])),[_sum]))
to
Measure 2 = CALCULATE(sumx(SUMMARIZE(filter(CROSSJOIN(Sheet1,'Date'),'Date'[Date]>=(Sheet1[Start Date]) && 'Date'[Date]<=(Sheet1[End Date])),Sheet1[Contract],'Date'[Date], ...
I get lost in the final part.
Thanks.