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
Anonymous
Not applicable

count the accounts by matching two date columns from two different tables.

I have three tables.
1. Main Calender table

2. Table x which contains a date column + other columns which has uniq customers
3. Table Y which also contains a date column + Other columns which doesnt have uniq cust

Diagram.

Main calender (one:many) Table x which is active.

Main calender (one:many) table y which is inactive.

Table x (one:many) table y which is active (based on unique cust)

Result required on columns

Date by year and month II  Sales completed (count of uniq customers in table x II Gross churn (if date column (table y) > date (table x) count and displayII


I tried using selected value, userrelationship but no luck. Other way that I thought of was using related and adding the table y date column in x and create two other column in the table but it inst the best way. Any suggestions using dax?

 

eshanpacheriwal_0-1642081707180.png    

eshanpacheriwal_1-1642081794260.png

 

              

 

 

 

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I don't seem to understand this paragraph, can you explain and describe it in detail?

vhenrykmstf_0-1642487881865.png

It should be noted that no relationship can be established between the two tables, otherwise it will cause logical errors. tablex in the statistics of customer sales, how to make a judgment on the date in the two tables, the result of the judgment is to get what results?


Looking forward to your feedback.


Best Regards,
Henry

 

amitchandak
Super User
Super User

@Anonymous , Ideally in this model X should not join with Y.

 

If need you should create a common customer table and join with both  and use customer from there

 

customer= distinct(union(distinct(X[customer]), distinct(Y[customerl])))

 

 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

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

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