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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Matrix Countrows with visual filter for 3 related tables

Hi,
I was searching through existing posts but didnt find a proper solution for my task.
I have 3 related tables, Product, Asset and Account

sts68_0-1705486268100.png


My matrix is combining data from all 3 tables:

sts68_1-1705486476902.png

[Account, Country, Region]: Account table
[Product]: Asset table
[Family]: Product table

I would like to get a count of accounts that is displayed in the matrix based on the slicer selection for Asset[Product] and Product[Family]. 
How can I achieve that? thanks!

sample xlsx and pbix  


1 ACCEPTED SOLUTION
sjoerdvn
Super User
Super User

# No Accounts = CALCULATE(COUNTROWS('Account'), CROSSFILTER('Asset'[Customer], 'Account'[Account], Both))

View solution in original post

5 REPLIES 5
sjoerdvn
Super User
Super User

# No Accounts = CALCULATE(COUNTROWS('Account'), CROSSFILTER('Asset'[Customer], 'Account'[Account], Both))
Anonymous
Not applicable

thanks sjoerdvn, I needed a few adjustments to my production file, but your solution works. crossfilter was the keyword I was missing

Anonymous
Not applicable

Hi abc123, I updated the post with a link to my sample data, excel and pbix

123abc
Community Champion
Community Champion

please provie sample data file.

Anonymous
Not applicable

please find sample pbix and data here: sample xlsx and pbix  

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.