cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Microsoft
Microsoft

@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
Microsoft
Microsoft

@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

Super User III
Super User III

Hi,

 

 

Share the link from where i can download your file.


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

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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors