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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.