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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I am currently calculating the last 7 days of sale from Today
Prior 7 Days Sales = ((CALCULATE (
Hi @BugmanJ ,
Please update the formula of measure [Prior 7 Days Sales] as below and check if it can return your expected result...
Prior 7 Days Sales = ( ( CALCULATE ( SUM ( [Total Sales] ), 'Sales Table'[Day Date] > MAX ( 'slicertable'[Date] ) - 8 ) ) - ( CALCULATE ( SUM ( [Total Sales] ), 'Sales Table'[Day Date] = MAX ( 'slicertable'[Date] ) ) ) ) / 7 |
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @BugmanJ
please try
VAR Greeting = "Good Morning"
VAR FullName = "/CompanyNET/AnneAlavarci/" --Use USERNAME ( ) Function
VAR Items = SUBSTITUTE ( FullName, "/", "|" )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.