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
rbalza
Helper III
Helper III

Need help - IF condition - dax measure

Hi PBI friends,

 

I have a table with two columns named Table[Current Asset] and Table[Current Liabilities] and I wanted to make a dax measure where:

 

1.) if there were negative values inputted on the table[current asset], it will be then transferred to table[current liabilities], else it will stay at table[current asset]

 

2.) if there were negative values inputted on the table[current liabilities], it will be then transferred to table[current asset], else it will stay at table[current liabilities].

 

See below-desired output:

rbalza_0-1623630350937.png

 

5 REPLIES 5
Anonymous
Not applicable

Hello @rbalza 
In this case, the calculated column will be the better option.
Please check the link.

Anonymous
Not applicable

Hello @rbalza 
You can create a calculated column and use in your visual.
Conditioning =
IF (
table[current asset] < 0,
table[current liabilities],
IF ( table[current liabilities] < 0, table[current asset] )
)

Hi @Anonymous , thanks for taking the time on this. Was it the same measure if I use it on DAX? Thanks a lot!

 

Anonymous
Not applicable

Hello @rbalza 
Nope. You have to use VALUES to store the field values. If you need further help please share your data in a table format with the expected output after removing the sensitive information.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.