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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Tableau calculation to DAX

Hi, Please help me to convert the following Tableau calculation in DAX.

 

IF IFNULL([Need Fm],0) < IFNULL([Need Im],0) THEN IFNULL([Need Fm],0) ELSE IFNULL([Need Im],0) END

 

Thank you!

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the calculated column.

 

Column = 
VAR _fm = COALESCE ( [Need Fm], 0 )
VAR _Im = COALESCE ( [Need Im], 0 )
RETURN IF ( _fm < _Im, _fm, _Im )

vkkfmsft_0-1656053057627.png

 


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the calculated column.

 

Column = 
VAR _fm = COALESCE ( [Need Fm], 0 )
VAR _Im = COALESCE ( [Need Im], 0 )
RETURN IF ( _fm < _Im, _fm, _Im )

vkkfmsft_0-1656053057627.png

 


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@Anonymous Hi Hari, Could you please help?

ryan_mayu
Super User
Super User

@Anonymous 

could you pls provide the sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors