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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
franorio
Helper III
Helper III

Relationship problem, USERELATIONSHIP not working

Have two relationships, the active between my DimAreas and Area Anterior, and an inactive one between DimAreas and Sumar CF a...

 

active.PNGinactive.PNG

 

This formula works great for me, I'm able to count Sumar CF a Column but my data gets related to my active relationship between DimArea and Area Anterior. 

COUNT of sumar cf = CALCULATE(
COUNTROWS('MovementsReport') ,
FILTER(
'MovementsReport',
NOT ISBLANK('MovementsReport'[Sumar CF a])
)
)

 

I need to apply this same formula but for my Inactive relationship for Sumar Cf a, when using USERELATIONSHIP i'm getting the next error

 

COUNT NEW AREA =
CALCULATE (
[COUNT of sumar cf],
USERELATIONSHIP ( DimAreas[Área], MovementsReport[Sumar CF a] )
)

 

*The USERELATIONSHIP function can only use the two column references that are involved in the relationship.

 

Any Ideas??

Thanks & Regards

1 ACCEPTED SOLUTION

User Vvelarde help me solved it!! Many thanks to him!

Had a hidden table with the almost same name with a ´ difference, was writting in the formula the unrelated table. 

 

I feel like an idiot!

 

Thanks all for your time!

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @franorio,

 

Based on my test, the formulas you provided above should work in your scenario.

 

Could you share a sample pbix file which can reproduce this issue, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. Smiley Happy

 

Regards

Hi @v-ljerr-msft thanks for your time, 

here you will find the report, 

 

https://www.dropbox.com/sh/idkvgmk4siy1ml7/AADQczWdxUhY9D_vQKfWOoAWa?dl=0

 

Thanks again. 

 

Best Regards!

User Vvelarde help me solved it!! Many thanks to him!

Had a hidden table with the almost same name with a ´ difference, was writting in the formula the unrelated table. 

 

I feel like an idiot!

 

Thanks all for your time!

 

Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.