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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!