Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I would like to create a measure that allowed me to show the previous week value.
When the user click wk 32, then the graph will shown the current week (wk32) and previous week (wk31) data in a graph.
the graph is clustered column chart and the xaxis will be category, weekday short; yaxis will be previous week (light colour) and current week (dark colour).
Previous Week = calculate(sum('Flow '[Value]),FILTER(all('Calendar'),'Calendar'[Date]=MAX('Calendar'[Date])-7))
current week=sum('Flow'[Value])
The issue that i having now is the pic 1 is under category (for the previous week suppose the sum of pic 2 but just obtain sunday value). Can anyone help me to change the previous week dax so that the under category can get the sum from monday to sunday.
Thanks for your help.
(pic1)
(pic2)
Solved! Go to Solution.
@Anonymous , Make sure calendar table is maked as date table and Weekday are coming from calendar table.
Try like
Previous Week = calculate(sum('Flow '[Value]),Dateadd('Calendar'[Date],-7, Day))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
@Anonymous , Make sure calendar table is maked as date table and Weekday are coming from calendar table.
Try like
Previous Week = calculate(sum('Flow '[Value]),Dateadd('Calendar'[Date],-7, Day))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |