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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

HI @mcobelens,

 

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

USERELATIONSHIP in Calculated Columns


Regards,

Xiaoxin Sheng

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

Anonymous
Not applicable

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors