Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |