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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
sts68
New Member

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))

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

sts68
New Member

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.

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

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors