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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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, "/", "|" )