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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
danielbacher
Frequent Visitor

Multiple criteria solutions?

Hi,
I have a task to filter around 250 rows of accounts. My solution would be to pass multiple criterias in a SWITCH( TRUE() statement. 
The problem here is that i have to pass a LOT of criterias, because i need to exclude a lot of accounts in between the ones i want to include. Does anyone know a better solution to this task?

2 REPLIES 2
smpa01
Super User
Super User

The alternative would be to use Joins.

 

For example, to demonstrate filtering with switch in sql

smpa01_0-1702394976868.png

 

filtering with joins in sql

smpa01_1-1702395067153.png

 

You need to do the same thing in DAX by building a table that is representative of the SWITCH condition and usr that to filter fact table.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

but wouldn't you need to make the individual criterias still? 
The only different i would notice in DAX table is that i can use DAX to just click and choose instead of writing the statements. Is that what you mean?
An example from my solution looks like this: 

danielbacher_0-1702395882958.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.