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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.