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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.