cancel
Showing results 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

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

3 REPLIES 3
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.

Resolver I

Hi, how are u?

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

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:

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.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors