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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tstackhouse
Helper III
Helper III

Dimention contains all three requirements

I have the following senerio. I am looking for PATDOB's that have all three B, MR and O.  Is there any way the I could use a calculation or filter to only include PATDOB's that contain all three (B,MR,O). I am not sure if it is possible to use some type of subtotal in this situation and then filter on that. Any help would be great. Thanks!

 

 

rioCocktails.PNG

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@tstackhouse

Create the following columns in your table.

Column = IF(Table[Opiod/Benzo/MusicRe]="(Blank)" || Table[Opiod/Benzo/MusicRe]="",0,1)

Checkcolumn = CALCULATE(COUNT(Table[Column]),FILTER(ALLEXCEPT(Table,Table[PATDOB]),Table[Column]=1))

Then drag the Checkcolumn to Visual level filters of Matrix visual and set its value as follows.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
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
v-yuezhe-msft
Employee
Employee

@tstackhouse

Create the following columns in your table.

Column = IF(Table[Opiod/Benzo/MusicRe]="(Blank)" || Table[Opiod/Benzo/MusicRe]="",0,1)

Checkcolumn = CALCULATE(COUNT(Table[Column]),FILTER(ALLEXCEPT(Table,Table[PATDOB]),Table[Column]=1))

Then drag the Checkcolumn to Visual level filters of Matrix visual and set its value as follows.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
TomMartens
Super User
Super User

Hey,

 

I would create this DAX statement to create a calculated column

Column = 
    IF(
        OR(OR('Table1'[B] = "", 'Table1'[MR] = ""),'Table1'[O] = "")
        ,"Some thing is missing"
        ,"Everything is there"
    )

This would create this result

2017-09-19_23-06-59.png

Then it simple to use this column to filter the rows you want.

 

Hope this helps

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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