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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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