Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I would like to create flag for current max week and last week data only.
For example, I have this table -
I would like to create dynamic flag like this
However, next week it should be look like this;
Thus, every week flag will change based on max current week and previous week of max week.
Any help will be appreciated.
I have tried following solution;
1) Rankx
2) Create variable with max week then compare with dim date table.
3)Swithc function with max week = week from dim_date && max week-7 = week from Dim_Date-7.
Thank you in advance!
Solved! Go to Solution.
hI @damit23183 ,
Please try this:
Flag =
VAR __MAX_WEEK =
MAX ( 'Table'[Week] )
RETURN
__MAX_WEEK - 'Table'[Week] <= 7
Proud to be a Super User!
hI @damit23183 ,
Please try this:
Flag =
VAR __MAX_WEEK =
MAX ( 'Table'[Week] )
RETURN
__MAX_WEEK - 'Table'[Week] <= 7
Proud to be a Super User!
Hi,
Thank you for your response and solution that worked perfectly fine.
Thanks
User | Count |
---|---|
88 | |
88 | |
75 | |
67 | |
58 |
User | Count |
---|---|
136 | |
110 | |
91 | |
84 | |
69 |