Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I currently have a column which flags the latest week number in the table using the formula below.
Max WeekNumber flag = IF(TABLENAME[WeekNumber] = MAXA(TABLENAME[WeekNumber]),1,0)
If the week number is equal to the max week number of the data, then assign the value 1, else 0. I have another column in my data for year but the latest week number for 2020 is 53 but for 2019 its 52.
How can I flag the latest week number for each year?
Solved! Go to Solution.
@bo_afk , Try a new column like
Max WeekNumber flag = IF(TABLENAME[WeekNumber] = MAXX(filter(TABLENAME,[Year] = earlier([year])),[WeekNumber]),1,0)
@bo_afk , Try a new column like
Max WeekNumber flag = IF(TABLENAME[WeekNumber] = MAXX(filter(TABLENAME,[Year] = earlier([year])),[WeekNumber]),1,0)
User | Count |
---|---|
98 | |
91 | |
84 | |
71 | |
67 |
User | Count |
---|---|
114 | |
103 | |
100 | |
72 | |
64 |