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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Analitika
Post Prodigy
Post Prodigy

UseRelationship Not Working

Measure return empty values
tbl_market_ratio
Column =
CALCULATE(
max(tbl_PL[Value]),
USERELATIONSHIP(tbl_market_ratio[Custom],tbl_PL[Attribute])
1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Analitika 

Please try calculated column as below.

 

Column = 
CALCULATE(
    max(tbl_PL[Value]),
     USERELATIONSHIP(tbl_market_ratio[Custom],tbl_PL[Attribute]),ALL(tbl_PL)
)

 

Or

 

Column 2 = 
MAXX(FILTER(tbl_PL,tbl_PL[Attribute]=EARLIER(tbl_market_ratio[Custom])),tbl_PL[Value])

 

Result is as below.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

9 REPLIES 9
v-rzhou-msft
Community Support
Community Support

Hi @Analitika 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

v-rzhou-msft
Community Support
Community Support

Hi @Analitika 

Please try calculated column as below.

 

Column = 
CALCULATE(
    max(tbl_PL[Value]),
     USERELATIONSHIP(tbl_market_ratio[Custom],tbl_PL[Attribute]),ALL(tbl_PL)
)

 

Or

 

Column 2 = 
MAXX(FILTER(tbl_PL,tbl_PL[Attribute]=EARLIER(tbl_market_ratio[Custom])),tbl_PL[Value])

 

Result is as below.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Anonymous
Not applicable

@Analitika - Instaed of calculated column, create a measure, it shows the value as below 

NikhilKumar_0-1605105428623.png

 

i need calculated column

Anonymous
Not applicable

@Analitika - Okay, for calculated column I could see , In tbl_Market_ratio, the column with name custom does not have all the quarters of 2012. ie. Q1, 2 and Q3 are missing and hence you are getting blank values.

So, how to do what i need?

Anonymous
Not applicable

Try changing the cross filter direction of the inactive relationship from both, and see if that helps.

amitchandak
Super User
Super User

@Analitika , empty means left side of table (1-M), do not have all the values.

So why not work? All values exists in full version!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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