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

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

Reply
TomGee
New Member

Frustrated with Tableau to PowerBI

I'm trying to convert a tableau solution to Power BI and am ready to slam my computer against a wall. It seems that everything is harder than it needs to be.

I simply want to produce an "A" or "B" result based on a whole set of and/or conditions. Simple in Tableau or SQL but I can't make it work in Power BI /  DAX. Open to any suggestions: 

Here's what it looks like in Tableau - how do I do this in power BI??

IF ( [Employed] = 'F'
and (
([Current Status]) ='A'
OR ([Current Status]) ='B'
OR ([Current Status]) ='C'
OR ([Current Status]) ='D'
OR ([Current Status]) ='E'
))

OR

( [Employed] = 'T'
and (
([Current Status]) ='G'
OR ([Current Status]) ='H'
OR ([Current Status]) ='I'
OR ([Current Status]) ='J'
))

OR (([Current Status] ='E' and [Naics]<>'92'))

then 'BAD' else 'GOOD' END

 

Any help would be GREATLY appreciated!

 

3 REPLIES 3
Anonymous
Not applicable

What is this - a measure or a calculated column? If it's a calculated column... why don't you do this in Power Query where it would be extremely simple?

In DAX things are also simple when you know how to use it. Like with any tool.

Best
Darek

Thanks - obviously I'm new to Power BI. I'm trying to create a calculated column. Would you recommend doing that with power query?

Anonymous
Not applicable

Of course I would.

Calculated columns should almost exclusively be created in the source data, not in DAX. DAX is a Data Analysis Expressions language, not a data mash-up language. M is. And in M you can use tools that are very, very similar to SQL - mainly joins and columns with custom formulas.

What does Microsoft DAX stand for?
Data Analysis Expressions (DAX) is the native formula and query language for Microsoft PowerPivot, Power BI Desktop and SQL Server Analysis Services (SSAS) Tabular models.
-- Microsoft

Best
Darek

Helpful resources

Announcements
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.