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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Yuvaraj
Helper I
Helper I

How to pass the another table values to measure and the values should change dynamically

Hi

 

I have to pass the values to dynamically to column values, here i have set the static value to Sheet1 table but I need to set the dynamic values instead of static range.

 

For Example:

 

Static Range:

ComplexityLevel = if(Sheet1[Page]<=500 && Sheet1[Gadget]<=0 && Sheet1[File]<=0 && Sheet1[Drive ]<=0,"1",
if(Sheet1[Page]<=900 && Sheet1[Gadget]<=0 && Sheet1[File]<=25 && Sheet1[Drive ]<=20,"2")

 

Expecting Result:

Consider i have new table it contains Page,File,Drive with values columns from here we enter the values manully , if we change range values again i need to update the values in above formula manully.

 

Is there any chance to call directly that new table like below expression

 

ComplexityLevel = if(Sheet1[Page]<=New[Row1 Page value ]&& Sheet1[Gadget]<=New[Row1 Gadget value] && Sheet1[File]<=New [Row1 File value] && Sheet1[Drive ]<=0,"1",
if(Sheet1[Page]<=900 && Sheet1[Gadget]<=New[Row1 Gadget value]&& Sheet1[File]<=New[Row2 File value]&& Sheet1[Drive ]<=New [Row2 Drive value],"2")

 

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Yuvaraj,

 

Have you solved your problem? 

 

If you have solved, could you share your solution or always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Yuvaraj,

 

Could you create the relationship between the tables?

 

Then you could use Related function to reference the value in another table such as:

 

ComplexityLevel = if(Sheet1[Page]<=Related (New[Row1 Page value ])
&& Sheet1[Gadget]<=Related (New[Row1 Gadget value] )......

If you still need help, please share some data sample which could reproduce the scenario and your desired output so that we could help further on it.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors