March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |