Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I am getting data for the last 7th day (Displays 29th Dec data as today is Jan 5th)using the below DAX
Solved! Go to Solution.
Hello @sshiny,
The measure that you wrote is a scalar value and will give you only one value.
From what I have understood, you need to filter the calendar table using something like this:
FILTER('Calendar', Calendar[Date] >= Today() - 7 && Calendar[Date] <= Today() )
This will give a table of the Last 7 days or you can write a measure something like this
Hope this helps.
Thank you,
Vishesh Jain
Proud to be a Super User!
Hello @sshiny,
The measure that you wrote is a scalar value and will give you only one value.
From what I have understood, you need to filter the calendar table using something like this:
FILTER('Calendar', Calendar[Date] >= Today() - 7 && Calendar[Date] <= Today() )
This will give a table of the Last 7 days or you can write a measure something like this
Hope this helps.
Thank you,
Vishesh Jain
Proud to be a Super User!
@sshiny
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 45 | |
| 38 | |
| 26 | |
| 22 |
| User | Count |
|---|---|
| 136 | |
| 117 | |
| 55 | |
| 36 | |
| 30 |