Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have 2 columns in my sheet sales amount and weekending date. I need to calculate sales amount for last 4 weeks, 12 weeks and 26 weeks and compare the same with previou year last 4 weeks, 12 weeks and 26 weeks. I tried few ways looking at similar posts before and looks like it is not working. I need to calculate it based on weeknumber because the iso week number for a given date this year is different to previous year same date value. Attaching the excel and pbix files. So for weekending 2/25/18 last 4 week sales amount should be 275 and last 12 weeks is 780 and Last 4 weeks previous year is 280. Appreciate the help.
Hi,
As far as i can tell, there is no ISOWEEKNUM() function in the Query Editor or the PowerPivot. May be someone else can shed some light on this.
If not ISOWeek may be regular weeknum will work too.
Hi,
You may download my solution from here.
Hope this helps.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |