Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I want to see sum of revenue field for dates less than the selected date in the filter . So for example if I have selected '6/30/2017' then I want to see sum of revenue for dates less than this.
Can anybody help me with a DAX for this?
Solved! Go to Solution.
Hi @sadhnabatra,
According to your description above, you should be able to use the formula below to create a new measure to calculate the sum of revenue field for dates less than the selected date in the filter.
Measure = CALCULATE ( SUM ( Table1[Revenue] ), FILTER ( ALL ( Table1 ), Table1[Date] <= MAX ( Table1[Date] ) ) )
Regards
Hi @sadhnabatra,
According to your description above, you should be able to use the formula below to create a new measure to calculate the sum of revenue field for dates less than the selected date in the filter.
Measure = CALCULATE ( SUM ( Table1[Revenue] ), FILTER ( ALL ( Table1 ), Table1[Date] <= MAX ( Table1[Date] ) ) )
Regards
Great! I want the filter to be were date = Max(date), how come that doesn't work and what can I do to get it to work? thanks!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |