Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
How to calculate latest 30 days sales amount in dax. can anyone please help me the same asap.
Thanks,
Pratima
Hi @Pratima,
Generally, you can try this measure:
Last 30 days = CALCULATE ( SUM ( Table2[val] ), FILTER ( ALL ( Table2 ), Table2[date] >= MAX ( Table2[date] ) - 30 && Table2[date] <= MAX ( Table2[date] ) ) )
If it doesn't satisfy your requirement, please share us more detaile information like some sample data and its corresponding desired result. So that we can know the right direction.
Thanks,
Xi Jin.
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |