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.
Kindly assist, how can I change the dax measures below;
I want that when I select a filter date range e.g. 2023-01-08 to 2023-01-14 it must show me the total sales for the week based on the filter date selected and it must also show me for example previous week sales e.g. 2023-01-01 to 2023-01-07, the current measures below only show the current week and the previous week based on the current date it does not allow me to apply the dates based on the filter date selected.
Current Week Sales =
CALCULATE ( [TOTAL Sales], DimDate[Week Offset] = 0 )
Prior Week =
CALCULATE ( [TOTAL Sales], DimDate[Week Offset] = -1 )
@Anonymous
@Anonymous can you share excepted out and sample data.
thank you!
The Sample data and the expected results, your assistance would be highly appreciated.
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |