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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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