Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
104 | |
86 | |
79 | |
70 | |
70 |
User | Count |
---|---|
112 | |
100 | |
98 | |
72 | |
66 |