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
Please refer to this blog how work with two date, if this can help
Appreciate your Kudos.
o59393
6 years agoPost Prodigy
Hi amitchandak
I see you use count x, but in my case is not a count of cases. Is pretty much return a value based on the date ranges.
Appreciate you help!
- amitchandak6 years agoSuper User
o59393 , Use this file. It has allocation between dates. You just do a copy no allocation
- o593936 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]))toMeasure 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.