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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Chris2016
Resolver I
Resolver I

Measure from different table is displaying the same number for all rows

Hello,

 

Could you please help with this issue?

I have two tables, related with Many to one cardinality and Single cross filtering.

Users

Name

John
Mark
Lily
Jenny
June
Marie
Frank

 

Assignments

NameID1ActiveCountry

John123TrueUSA
John456FalseCanada
June123TrueFrance
Jenny123TrueCanada
Jenny456FalseUSA
Marie123TrueFrance
Frank789TrueUSA

 

I have the following measures calculated:
Users Table:

Total Users = DISTINCTCOUNT(Users[Name])

 

Assignments Table:

Total Assigned = CALCULATE(DISTINCTCOUNT(Assignments[Name]),FILTER('Assignments',Assignments[Active]=FALSE()))
% Users Assigned = [Total Assigned]/[Total Users]
 

If I am plotting all these measures in a matrix, the 'Total Users' measure displays the same number for every row.

 Chris2016_3-1668097894121.png

 


I cannot change the Cross filter direction to Both because then the '% Users Assigned' is off.

 

Chris2016_1-1668097783025.png

Is there a way to do these calculations in a way that I can display everything in a matrix correctly?

 

Power Bi Sample file here:
https://www.transfernow.net/dl/20221110x32dkDiR

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Chris2016 You can use CROSSFILTER function to change relationship direction within a measure calculation.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Chris2016 You can use CROSSFILTER function to change relationship direction within a measure calculation.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi, Greg,

 

Thanks a lot, this worked.

Best regards,

Cristina

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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