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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
GKrishnan
Regular Visitor

Need help with userelationship to display label text

Hi,

 

I am having an issue with using inactive relationship to display a label text. As in the image you can the see text displayed both for performance and potential is same even though the skeys are different. One of the relationship is kept active and other is inactive, direction of filter is single.

GKrishnan_0-1715993200648.png

 

DAX 

current_potential_label_nm_measure = CALCULATE(
    MAX('MODEL Dim_Rate_Label'[rate_label_nm]),
        USERELATIONSHIP(
            'MODEL Fact_Performance'[current_potential_label_rt_skey],
            'MODEL Dim_Rate_Label'[rate_label_skey]
        )
)

I have tried the following as well but doesn't return expected results
current_potential_label_nm_measure = CALCULATE(
    MAX('MODEL Dim_Rate_Label'[rate_label_nm]),
    CALCULATETABLE(
        'MODEL Fact_Performance'
        USERELATIONSHIP(
            'MODEL Fact_Performance'[current_potential_label_rt_skey],
            'MODEL Dim_Rate_Label'[rate_label_skey]
        ))
)

Any thoughts how to fix this? 



2 REPLIES 2
GKrishnan
Regular Visitor

Sorry I can't share the file due to sensitive data. But I got it working unfortunately performance is too slow as I had to add 10 relationships. So resorted back to using lookup.

xifeng_L
Solution Supplier
Solution Supplier

I need to see the model relationships and the tables that each field on the matrix belongs to, can you provide the pbix file?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors