The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have this table in my model :
DAY_ORDER SHIFT WEEKDAY QUANTITY
1 | NIGHT_SHIFT_WD | MON | 70 |
1 | MORNING_SHIFT_WD | MON | 43 |
1 | EVENING_SHIFT_WD | MON | 75 |
2 | NIGHT_SHIFT_WD | TUE | 34 |
2 | EVENING_SHIFT_WD | TUE | 75 |
2 | MORNING_SHIFT_WD | TUE | 96 |
3 | NIGHT_SHIFT_WD | WED | 43 |
3 | EVENING_SHIFT_WD | WED | 45 |
3 | MORNING_SHIFT_WD | WED | 64 |
4 | NIGHT_SHIFT_WD | THU | 0 |
4 | EVENING_SHIFT_WD | THU | 0 |
4 | MORNING_SHIFT_WD | THU | 0 |
5 | NIGHT_SHIFT_WD | FRI | 0 |
5 | EVENING_SHIFT_WD | FRI | 0 |
5 | MORNING_SHIFT_WD | FRI | 0 |
6 | NIGHT_SHIFT_WKND | SAT | 0 |
6 | DAY_SHIFT_WKND | SAT | 0 |
7 | NIGHT_SHIFT_WKND | SUN | 0 |
7 | DAY_SHIFT_WKND | SUN | 0 |
7 | NIGHT_SHIFT_WD | SUN | 0 |
I'm using the following measure to calculate a running total :
Solved! Go to Solution.
@Anonymous You can create an additional measuere as
@Anonymous You can create an additional measuere as
@smpa01 Hey! That's exactly what I was looking for! Thanks for helping!! Much appreciated!
hey @Anonymous ,
you can use WEEKDAY(TODAY() , ...) to find out the daynumber of the weekday, incorporate into your statement and return BLANK() if DAY_ORDER is greater than WEEKDAY(TODAY() , ...).
Hopefully, this provides some new ideas that will help to tackle your challenge.
Regards,
Tom
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
122 | |
89 | |
75 | |
55 | |
45 |
User | Count |
---|---|
134 | |
120 | |
76 | |
65 | |
64 |