Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |