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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MarceloCass
Frequent Visitor

Can't use two relationship at same time

Hi, i'm new on PBI universe but there is that problem that I can't see solution on another posts like normally I do.

 

I have two relationships between "DATA" and "KSB1" tables, I need to filter a line chart when I select some bar on the clustered column of "ÁREA" and when I select in the slicer "MÊS", but when I put the "measure 3" below in the line chart just works one relationship. Depends wich I chose on realationship "active" only that will work, the onother one don't. But with the USERRELATIONSHIP it's suppose to work even without the "active" option selected, but still not works.

 

Measure 3 = CALCULATE(
                SUM(KSB1[VALOR]),
                USERELATIONSHIP(DATA[M], KSB1[Mês]),
                USERELATIONSHIP(DATA[ÁREA], KSB1[ÁREA])
                )
The values of both collums are the same. "ÁREA have same values of ÁREA", and "M" have same values of "Mês" in this tables.
I ensure that the both collums have same type, common causes of problems as I search.
 
Thanks some help.
 
Here what I trying to do:
 
 
relation 2.png
My realationship:
relation.png
 
relation 3.png
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @MarceloCass 
Please try

Measure3 =
CALCULATE ( SUM ( KSB1[VALOR] ), KSB1[ÁREA] IN VALUES ( DATA[ÁREA] ) )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @MarceloCass 
Please try

Measure3 =
CALCULATE ( SUM ( KSB1[VALOR] ), KSB1[ÁREA] IN VALUES ( DATA[ÁREA] ) )

it works greatly, thanks!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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