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

Distinct count from 2 columns in 2 tables

Hello,

 

I am trying to do a distinct count on two different fact tables ('Transaction Log'[Start Transaction Date] and 'Tote Info'[Ship Date]). Current, I have a measure called # of Ship Dates (see below) which is taking the max of the distinct count of each field separately. I'd like for those fields to be combined and then take the distinct count.

 

# of Ship Dates = MAX(DISTINCTCOUNT('Tote Info'[Ship Date]),DISTINCTCOUNT('Transaction Log'[Start Transaction Date]))
 
I ultimately use this measure in my Total Usable Truck Cube measure (see below).
 
Total Usable Truck Cube = SUMX('Truck Specs', 'Truck Specs'[Usable Truck Cube (ft)]*[# of Ship Dates])
 
1 REPLY 1
dax
Community Support
Community Support

Hi JDaly, 

If possible, could you please inform me more detailed information(such as your expecting output and your sample data)? It seems that your pbix file use direct query, I can't access data in  report.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.