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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
saikarthick
Frequent Visitor

Need to find interval from two date columns which is from different tables

Hi Everyone,

 

I need to find interval from two date columns which is from different tables and not in direct realationship

 

Interval days = 'customer_policies'[Approval_date] - 'policy_sales'[sale_date]

 

Facing some issue in sharing screenshot, otherwise i would have shared it.

 

so, Relation between tables are below:

 

customer_policies[customer_id] ---many to one --customer[customer_id]

customer[customer_id] --- one to many ---policy_sales[customer_id]

 

Kindly some one help on this with explanation if possiblle.

 

Thanks in advance.

3 REPLIES 3
Anonymous
Not applicable

Hi @saikarthick,

 

I'd like to suggest you to add a calculate column at 'many side' to reference date column from 'one side', then you can simply use datediff function to calculate interval.

 

Regards,

Xiaoxin Sheng

Thanks bro. I am very new to power bi.

Can u please explain me with an example. If possible on same scenario.

Anonymous
Not applicable

HI @saikarthick,

 

Can you please share a sample pbix file? I will add sample formula on it.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.