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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
aghanchi
Helper I
Helper I

lookup column value from related table

How can I get the Dates[FY] column value based on the inactive relationship between the Cases[CloseDate] and Dates[Date] columns?

I want to add a column to Cases table that will hold this value.

aghanchi_0-1612498392855.png

 

1 ACCEPTED SOLUTION
aghanchi
Helper I
Helper I

Found the Solution:

CloseDateFY = LOOKUPVALUE(Dates[FY], Dates[Date], COALESCE('Cases'[CloseDate], TODAY()))

View solution in original post

6 REPLIES 6
joglidden2
Post Patron
Post Patron

Amit-Chandak, you always deliver! @amitchandak 

aghanchi
Helper I
Helper I

Found the Solution:

CloseDateFY = LOOKUPVALUE(Dates[FY], Dates[Date], COALESCE('Cases'[CloseDate], TODAY()))
amitchandak
Super User
Super User

@aghanchi , not needed having an active relationship. Example of measures 

 

calculate(countrows(table), USERELATIONSHIP('Date'[date], Table[CloseDate]))

 

calculate(countrows(table), USERELATIONSHIP ('Date'[date], Table[OpenDate]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I'm sorry, I forgot to mention that I am not needing an aggregation. Rather I need to add a column to the Cases table that is fetched from the Dates table based on that inactive relationship i.e. Cases[CloseDate] = Dates[Date].

amitchandak
Super User
Super User

@aghanchi , refer my blog on similar topic can you help

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I'm sorry @amitchandak . The article did not apply to my situation. I have now rephrased my question. Please see it again. I need a column value from the Dates table based on an inactive relationship. I know I will be using USERELATIONSHIP somewhere in there, but don't know how.

Thanks.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.