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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a column with if condition and filtered value from another table

Hi everyone,
 
I am trying to create a column in my main data table by using a value from the second table. Tables do not have any relationship.
 
Second table has 1 column and 5 rows that I use in the slicer and need a dynamic column in my main table that has an if statement using the selected value from the slicer. 
 
Column = if(Losses[Claimed Amount]>=FIRSTNONBLANK('Large Loss Limit'[Limit],'Large Loss Limit'[Limit]),"Large Loss","Not Large Loss") - This one only uses the first value in the second table.
 
Column = if(Losses[Claimed Amount]>=SELECTEDVALUE('Large Loss Limit'[Limit],[Selected Limit]),"Large Loss","Not Large Loss") - This one does not change anything.
 
Any help would be appreciated.
 
Thanks!
3 REPLIES 3
Anonymous
Not applicable

Columns can not be dynamic. columns are get loaded at first load only.

 

Measures are used for dynamic calculation.

 

Incase you want measures please share sample data and expected output.

Incase you want columns only then it is not possible as columns are not dynamic.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Anonymous
Not applicable

Thanks for the response. 

 

I created a measure instead of a column, and now trying to figure out how to use the measure as a filter and also as legend for visuals.

 

Thanks!

Anonymous
Not applicable

Measure can be used as filter but can not be used as legend.

Thanks,
Pravin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors