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
Rygaard
Resolver I
Resolver I

Matrix Filters, if not blank, but 2 different collumns (Eg. Actual = not blank, OR LY = not blank)

I have a matrix

 

customerActual this yearBudget this year
A100 
B 100
C  

 

I want A and B to be shown but not C

Is there a way to filter this

 

Normaly i would set filter for

"Actual this year" = not blank     But that would filter out C and B

"Budget this eyar" = not blank    But that would Filter out A and C

 

there is no way as i see it to make a combined filter ?

 

2 ACCEPTED SOLUTIONS
nandukrishnavs
Super User
Super User

@Rygaard 

 

Create a calculated column using DAX or Edit Query.

Below is the DAX 

required = IF(ISBLANK(MyTable[Actual this year])&&ISBLANK(MyTable[Budget this year]),"No","Yes")

Then apply filter.


Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

@nandukrishnavs  - yes that is what i have now .. or sort of... 

has activity = ABS(MyTable[Actual this year])+ABS(MyTable[Budget])+ABS(MyTable[actual,LY]+ABS(MyTable[Budget, LY]))

 

 

and then a filter on that show if greater than 1

View solution in original post

4 REPLIES 4
nandukrishnavs
Super User
Super User

@Rygaard 

 

Create a calculated column using DAX or Edit Query.

Below is the DAX 

required = IF(ISBLANK(MyTable[Actual this year])&&ISBLANK(MyTable[Budget this year]),"No","Yes")

Then apply filter.


Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

@nandukrishnavs  - yes that is what i have now .. or sort of... 

has activity = ABS(MyTable[Actual this year])+ABS(MyTable[Budget])+ABS(MyTable[actual,LY]+ABS(MyTable[Budget, LY]))

 

 

and then a filter on that show if greater than 1

amitchandak
Super User
Super User

Ideally, C should not have come. Check have you check this option. Uncheck if checked

ShowItemwithoutdata.JPG

 

The problem is not that C is showing.... the probleing is having A and B stay.... either of the 2 filters will remove C but either of them will also remove to much

 

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.

Top Solution Authors