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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

How do I write a filter like this (Filter A = "b" or Filter B = "b") and Filter C = "x"

Trying to figure out in DAX how I can write this filter.

 

THANK YOU!

 

(Filter A = "b" or Filter B = "b") and Filter C = "x"

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

If you want to calculate something like total sales, try this:

Measure =
CALCULATE ( SUM ( 'YourTable'[Sales] ), A = "b" || B = "b", C = "x" )

 

 

Best Regards,

Icey

 

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
Icey
Community Support
Community Support

Hi @Anonymous ,

 

If you want to calculate something like total sales, try this:

Measure =
CALCULATE ( SUM ( 'YourTable'[Sales] ), A = "b" || B = "b", C = "x" )

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HenriqueReis
Resolver I
Resolver I

Hi, how are u?

 

Is that what you mean? A lot of customized filters for a report? Look:

HenriqueReis_0-1652727059515.png

 

If you want to do it, you just need to add a visual named 'slicer' and select a column with the informations you want to segregate, for exemple:

 

HenriqueReis_1-1652727236441.png

 

In this image, first I selected the visual 'slicer' (black circle), then I drag to there the column I want to use (red circle) and then I got the filter (blue circle). 

 

I hope its help

 

Regards from BR!

Anonymous
Not applicable

Apologies this is a filter for a DAX calucation.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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