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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.