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
I have two tables: Time and Item
table.Time is the amount of [Days] associated with a [Step] based on cost identified in a range (Fields for [Cost Min]/[Cost Max])
table.Item is a list of [Item]s with it's current [Cost] and [Step].
I need to return the current and future [Step]s and their respective [Days] from table.Time within a cost group ([Cost Min]/[Cost Max]) based on the [Cost] and [Step] of the item selected in table.Item. The [Step]s I need to return are the selected one, and all that come after in that group (potentially determined by [UN] range? (unique identifier for table.Time)
table.Time:
Time | ||||
UN | Cost Min | Cost Max | Step | Days |
1 | 0 | 10 | Step 1 | 4 |
2 | 0 | 10 | Step 2 | 3 |
3 | 0 | 10 | Step 3 | 2 |
4 | 0 | 10 | Step 4 | 1 |
5 | 11 | 20 | Step 1 | 8 |
6 | 11 | 20 | Step 2 | 7 |
7 | 11 | 20 | Step 3 | 6 |
8 | 11 | 20 | Step 4 | 5 |
9 | 21 | 30 | Step 1 | 12 |
10 | 21 | 30 | Step 2 | 11 |
11 | 21 | 30 | Step 3 | 10 |
12 | 21 | 30 | Step 4 | 9 |
table.Item
Item | ||
Item | Cost | Step |
A | 10 | Step 1 |
B | 12 | Step 2 |
C | 30 | Step 4 |
Examples of returns when specific items are selected in table.Item:
Return When Item A Selected | |
Step 1 | 4 |
Step 2 | 3 |
Step 3 | 2 |
Step 4 | 1 |
Return When Item B Selected | |
Step 2 | 7 |
Step 3 | 6 |
Step 4 | 5 |
Return When Item C Selected | |
Step 4 | 9 |
Ultimately, in the exmaples above, [Days] needs to be a date in the future calculated off TODAY() adding the number in [Days]. I also am not sure the best visual to return this to.
Edit*** I realized my initial presentation with colors in place of [Step]s was unclear so I changed the data to explain better.
why select B and C only see three and one color? there are 4 colors in the first table.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |