Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
crobinson661
Frequent Visitor

Help with Lookup/Return/Visual

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 MinCost Max      StepDays
1010Step 1            4
2010Step 23
3010Step 32
4010Step 41
51120Step 18
61120Step 27
71120Step 36
81120Step 45
92130Step 112
102130Step 211
112130Step 310
122130Step 49


table.Item

Item
ItemCostStep
A10Step 1
B12Step 2
C30Step 4


Examples of returns when specific items are selected in table.Item:

Return When Item A Selected
Step 14
Step 23
Step 32
Step 41
  
Return When Item B Selected
Step 27
Step 36
Step 45
  
  
Return When Item C Selected
Step 49


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. 

1 REPLY 1
ryan_mayu
Super User
Super User

why select B and C only see three and one color? there are 4 colors in the first table.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.