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