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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ykumar03
Frequent Visitor

How to apply filter on implicit measures in matrix Visual

This is my table.

 

tabletable

and I have created this matrix visual on this

output.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

Now I want to apply a filter on this visual for records where C is blank and N has some count..Like below. Please help 

final.PNG

@PowerBI 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@ykumar03  Please paste your data in table format in future (can paste from Excel direct to this forum). It makes it much easier for us to help. 

 

One option is to use a measure in the matrix that does the filtering for you: 

 

Filter =
VAR _C = CALCULATE([Status Count], 'Table'[Status] = "C")
VAR _N = CALCULATE([Status Count], 'Table'[Status] = "N")
RETURN
CALCULATE([Status Count], FILTER(VALUES('Table'[empname]), ISBLANK(_C) && _N>0))
 
See attached sample file under my signature. 

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

3 REPLIES 3
AllisonKennedy
Super User
Super User

@ykumar03  Please paste your data in table format in future (can paste from Excel direct to this forum). It makes it much easier for us to help. 

 

One option is to use a measure in the matrix that does the filtering for you: 

 

Filter =
VAR _C = CALCULATE([Status Count], 'Table'[Status] = "C")
VAR _N = CALCULATE([Status Count], 'Table'[Status] = "N")
RETURN
CALCULATE([Status Count], FILTER(VALUES('Table'[empname]), ISBLANK(_C) && _N>0))
 
See attached sample file under my signature. 

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank You so much @AllisonKennedy for your help.

You're very welcome @ykumar03 Glad it worked for you. 🙂 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors