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

Find associated row in Fact table

Hi, I am trying to create a calculated field in my data that will let me know if a policy has been renewed.  In my fact table there is a unique polID, and a unique ParentPolID.  Each term should have a different polID but the same ParentPolID. So what i'd like to do (in english) is;

 

If this row's (A) ParentPolID exists in another row (B) with an Effective date (B) > this rows expiration date (A) AND that row (B) has a status of Issued, flag this row (A) as renewed.

 

I have separate date tables for Effective Date and Expiration Date, with both containing Date keys linked to the fact table. 

 

The report evenutally will let me list the policies that are expirign this month, grouped by what has been rened and what has not been renewed.

 

Any suggestions would be greatly appreciated!

1 ACCEPTED SOLUTION

I posted a solution to a different problem, my apologies.  I will post that separately so others can find it.  I have decided to address this through the SQL source instead of Power BI. I don't have any caluclations or code because I don't even know where to begin.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@CRBam,

Could you please share sample data of your table that can be copied and pasted to us? And also please post expected result here based on your sample data so that we can provide you appropriate dax.

Regards,
Lydia Zhang

I posted a solution to a different problem, my apologies.  I will post that separately so others can find it.  I have decided to address this through the SQL source instead of Power BI. I don't have any caluclations or code because I don't even know where to begin.

 

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