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
game1
Helper III
Helper III

subtract between two columns from 2 different tables

Hi,
I want to subtract between two columns from 2 different tables.
For example, I have TABLE1[DateBirth] and TABLE2[DateDeparture]. The problem is that there is no cardinality between TABLE1 and TABLE2. How should I go about doing this? Related does not work and when I use datediff, I do not have access to the fields of TABLE2, because I created "DiffDate = " in TABLE1

2 REPLIES 2
ChielFaber
Solution Specialist
Solution Specialist

Are there any columns in your datascource that could be used to create a key? Could you provide a sample table with dummy data for us to provide a solution?


[Tip] Keep CALM and DAX on.
[Solved?] Hit “Accept as Solution” and leave a Kudos.
[About] Chiel | SuperUser (2023–2) |

Yes. Both table have in common IDName. But I try to connect cardinality and it didn't work.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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