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 August 31st. Request your voucher.
Hi, I want to create a calculated measure or column that has me select last week's sales and sales from the beginning of the year to last week. I want this to also be a filter so that I can decide if I want to see sales either by previous week or all weeks up to the previous week. What code should I write?
Thank you
What does "week" mean to you? Does your calendar table have yearweek numbers?
exactly!
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
30 | |
15 | |
12 | |
12 | |
7 |