Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, everybody,
I created weekly coin sales and showing this week and previous week coin sales. Now to see both week, we need to click two weeks in a slicer part.
But my customer wants to click just once on a filter choosing just one week, previous week appear automatically.
Is there any method to click just one and see with previous week cooin sales as well?
Thank you always.
hi @Anonymous ,
Please use the below Dax formula to make new MEASURE to calculate last week sale.
lastWeek_Sales =
VAR WeekNum_LastWeek =
WEEKNUM ( TODAY () ) - 1
RETURN
CALCULATE (
SUM ( 'table'[Sale] ),
WEEKNUM ( 'Table'[Date] ) = WeekNum_LastWeek
)
You can use this measure too show last week count when this week filter is selected.
do not hesitate to give a kudo to useful posts and mark solutions as solution.
Regards,
Gaurav Raj Singh
LinkedIN : https://www.linkedin.com/in/gauravrajsingh/
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |