The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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, "/", "|" )
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
8 | |
5 |