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
thomarw
Regular Visitor

Using different sources of $$$ depending on the value in a field

Hi there!  I have a field called 'Stage' with three different values, 'Complete', 'Execution' and 'Approved'.  If an item is 'Approved' I would like to use the value in a field called Total Project Spend, BUT if the value is 'Complete' or 'Execution' then I'd like to use the value in a field called Combined LBE.  Is there a way to apply this logic to a visualization?  Please let me know what you think.  Thanks!

1 ACCEPTED SOLUTION

Thanks for the guidance!  Here's what I ended up getting to work:

 

#"Added Custom1" = Table.AddColumn(#"Changed Type1", "NewMoney", each if [Stage] = "Approved" then [TotalProjectSpend] else [Combined LBE]),
#"Changed Type2" = Table.TransformColumnTypes(#"Added Custom1",{{"NewMoney", Currency.Type}})

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Sounds like you need to create a custom column with an IF statement.  This would be something like

 

OutputField = IF(
	[Stage] = "Approved",
	[Total Project Spend],
	[Combined LBE]
)

This code assumes all your fields are in the same table.  If they are not, you'll need to expand on the DAX code.

Thanks for the guidance!  Here's what I ended up getting to work:

 

#"Added Custom1" = Table.AddColumn(#"Changed Type1", "NewMoney", each if [Stage] = "Approved" then [TotalProjectSpend] else [Combined LBE]),
#"Changed Type2" = Table.TransformColumnTypes(#"Added Custom1",{{"NewMoney", Currency.Type}})

 

 

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.