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
Anonymous
Not applicable

Tricky Filtering

I have this data:

1.PNG 

 

Within this data there are two types you can have: Premier or Professional. Premier types may or may not have a Payroll AM populated. Professional types will NEVER have a Payroll AM. For the Premier type, I am only interested in accounts that DO have a Payroll AM. Problem is, I can't simply click on the Payroll AM column and weave out the nulls because that will also filter out all of the Professional results which I need so we can toggle back and forth between the two types.

 

So is there is any way to filter out Premier records that have "null" as their Payroll AM while simultaneously not touching the Professional records? And is there a way to do it so it's automatic as new results come in? We would definitely get records in the future without a Payroll AM and I don't want to come in every month and manually filter them out, if possible. Thanks!

 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, I'll take the way to create a conditional column to evaluate both columns to obtain 1-0 or Yes/No and filter using this new column.

 

Regards

 

Victor




Lima - Peru

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Create a new column along the lines of:

 

if [Type] = "Professional" then 2 else if [Type]="Premier" && [Payroll AM] <> null then 1 else 0

Filter out the 0's and remove the column.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you @Greg_Deckler and @Vvelarde for the responses. I did something similar that gave me results I was looking for. Not sure if it's best practice. I made copies of both columns and merged them together with a "-" as a separator. So if an account is Premier and has no account manager, it would just be "Premier-":

1.PNG

 

I'm then just using this merged column as a page level filter and unchecking the "Premier-" option. Gives me what I would need to see from both types.

Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, I'll take the way to create a conditional column to evaluate both columns to obtain 1-0 or Yes/No and filter using this new column.

 

Regards

 

Victor




Lima - Peru

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.