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
mcobelens
Frequent Visitor

How to dertermine the latest row in a related table?

Hi There,

 

I'm struggling with the following:

 

I have Clients, Retailers, Invoices and Switchers
screenshot.PNG
Retailers have main clients and the table Switchers contains the date that a retailers main client changed/switched.

My question is, is it possible to create a measure in retailers that determines the main client by month.
I need to create a view where I need to know what the main client was for a retailer, but the table switchers only contains data for the months that the switch happened.

 

sample pibx

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @mcobelens,

 

Maybe you can try to use USERELATIONSHIP function to use inactive relationship to calculate:

USERELATIONSHIP in Calculated Columns


Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for your suggestion but I'm affraid that I don't quite understand how that would work.

HI @mcobelens,

 

It is similar as a normal calculate filter condition, you can defined USERELATIONSHIP in calculate function, then your formula can calculate based on specific relationship which defined even if it not activated.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.