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

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

Reply
Vikki
Frequent Visitor

Conditionally replace values in a column with a measure

Hi All,

 

I have a problem creating a measure properly, here is the situation:

I have 2 tables:

Vikki_0-1619727098666.png     

Vikki_1-1619727163626.png

My goal is, when Costing FY="Actuals", replace Costing Amount with Actual Amount, so the amounts stay in 1 column, desired outcome:

Vikki_2-1619727428650.png

I tried calculated column, it didn't work with SUM(Actual Amount).

Can someone help?

Thanks,

Vikki

 

1 ACCEPTED SOLUTION

Thank you for the inspiration. I made a small change of your first solution, and it worked:

if(FIRSTNONBLANK(table[Costing FY]) = "Actual" ,[Actual Amount], [Costing Amount])

Thank you,

Vikki

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Vikki , Try a measure like below. Assuming [Actual Amount], [Costing Amount] are measures

 

if(max(table[Costing FY]) = "Actual" ,[Actual Amount], [Costing Amount])

 

 

or

 


sumx(summarize(Table,Table[Title], table[Costing FY], "_1", [Actual Amount], "_2",[Costing Amount]), if([Costing FY] = "Actual" ,[Actual Amount], [Costing Amount]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the inspiration. I made a small change of your first solution, and it worked:

if(FIRSTNONBLANK(table[Costing FY]) = "Actual" ,[Actual Amount], [Costing Amount])

Thank you,

Vikki

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.