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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

DAX Filtering and Identifying Multiples Across an Attribute

Relativly new to DAX and would appreciate any input.  I have data that looks like the below and I have a sclicer on Event_Type.  I want to filter on multiple Event_Types and then be able to filter to only include those records that have Audited and Invoiced set to Y for multiple rows accross each Event_ID. 

 

Event_ID

Row_ID

Audited

Invoiced

Event_Type

1

10

Y

Y

Urgent

1

20

Y

Y

Emergency

1

30

N

N

Routine

2

40

N

N

Urgent

2

50

Y

Y

Emergency

2

60

Y

Y

Routine

3

70

Y

Y

Urgent

3

80

Y

Y

Emergency

3

90

Y

Y

Routine

 

So, if I filter on Event Types of Urgent and Emergency, I would like to be able to have another slicer (i.e. Has Multiple) that will return the records that have Audited and Invoiced set to Yes.

In this example (filtering for Urgent and Emergency) I would get Row_IDs 10, 20, 70, 80.

 

I have tried to create measures on top of custom columns to return counts and use those as my “Has Multiple” filter but I can’t get the measure to change when I filter by Event Types.  Any advice how to implement the functionality would be appreciated

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

If I understand correctly, the issue is that you want to filter on multiple Event Types. Please try the following methods and check if they can solve your problem:

1.Create the simple Table and Table 2. 

vjiewumsft_0-1704875337903.png

 

vjiewumsft_1-1704875337904.png

2.Add Create a measure 2. Enter the following DAX formula.

Measure 2 = 
var tmp=SELECTCOLUMNS('Table 2',"ET",[Event_Type])
var _str=CONCATENATEX(tmp,[ET],",")
var _a=SELECTEDVALUE('Table'[Audited])
var _b=SELECTEDVALUE('Table'[Invoiced])
var _c=SELECTEDVALUE('Table'[Event_Type])
return
IF(ISFILTERED('Table 2'[Event_Type]),IF(CONTAINSSTRING(_str,_c)&&_a="Y"&&_b="Y",1),1)

3.Move measure 2 to the filters.

vjiewumsft_3-1704875374819.png

 

4.Select the slicer visual and move the Table 2 Event_Type to the slicer.

vjiewumsft_6-1704875474690.png

5.Select the Emergency and Urgent, the result is shown below.

vjiewumsft_5-1704875386383.png

Looking forward to your reply.

Best Regards

 

 

 

 

Hi.  Thanks for the reply.  The idea is that the user will select two or more Even_Types.  Then they would like to further filter to only include records that occure more than once within an given Event_ID for the selected Event Types. 

I was thing of creating a column (like CountInEvent) that would calculate and update based on the even_type selection and then using that as a filter.  

The key point is that if the user changes the Event_Types selected (via a slicer) the CountInEvent should change.

 

This would be what it would look like without filters.

adavtian_3-1704906402393.png

 

 

If I filtered on Emergency and Routine it would look like the below (Since only these values have Audited and Invoiced set to Y)

adavtian_2-1704906298818.png

 

Then I would filter on CountInEvent to only get values greater than 1.

 

 

 

Ritaf1983
Super User
Super User

Hi @Anonymous 

Please show what is the desired output.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

The Selecte slicer values for Entry Type would be 

Urgent

Emergency

 

The I would use a flag (or another method to select where Autided and Invoiced = Y) 

This would give me the following result:

 

Event_ID

Row_ID

Audited

Invoiced

Event_Type

1

10

Y

Y

Urgent

1

20

Y

Y

Emergency

3

70

Y

Y

Urgent

3

80

Y

Y

Emergency

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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