Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi again,
SO by using a DAX formula, how can I show data for
2 months: this month and the previous
5 weeks: this week and previous 4
7 days, today and previous 6
I want to end up with this:
So, in generaly, you are going to do this by wrapping an aggregation function with a CALCULATE with the appropriate filter. You may need to add some additional columns to your data that calculate some of this information using TODAY. For example, if you want the number of days from TODAY, you could do this:
DaysAgo = IF([Date]<TODAY(),DATEDIFF([Date],TODAY(),DAY),BLANK())
You could then do something like this:
Measure = CALCULATE(SUM(<column>),[DaysAgo]<6)
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |