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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.