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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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