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.
We have suppliers who's seasons over lap years. For instance they start supplying us in Week 42 and end supply in week 7.
I need to write something in Power Query that will get me the year for these weeks.
In this example week 42 is in 2022. So the start year is 2022. How can I write it so that it gives me 2022 as the year for Weeks 42-52 and 2023 for weeks 1-7.
I did write:
if [Week]<42 then 2023 else 2022
but it could be different weeks for different suppliers.
Can anyone help at all?
Hi,
Any chances you can provide how the table where you want to add that formula looks like?
Like this?
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |