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
syoon
New Member

Combining two tables with different row count

Hi all,

 

Here I have 2 queries, one showing the billing history and the other showing the cash-in history.

 

Capture1.PNGCapture2.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I would like to combine these two. My goal is to get both Cash-in and Billing columns on one table so that later I can easily calculate Outstanding Cash-in (equivalent to Billing - Cash-In). 

 

One problem is that two tables have different number of rows. Therefore, two tables doesn't necessary match. However, both contain same names. 

 

I initially tried grouping by name, but that condenses "date", which is not what I want because I am trying to use Date slicer and condensing dates would hinder that.

 

To summarize:

 

1. I want to have Cash-in and Billing columns on the same table (unless there's a way to calculate without having them on one place)

 

2. Date must not be condensed.

 

Any suggestion / comments on how to solve this problem? Any suggestion would be greatly appreciated.

 

Thank you!

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @syoon,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Cherry,

 

I believe you @ the wrong person, I am not the one who posted the question.

 

Thanks

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @syoon,

 

Have you tried with the way @Anonymous suggested? 

 

 

For another option, you could create a reationship between the two tables and create a bridge table to get Billing and Cash-In,

 

then you could use dax to calculate the value.

 

Hope this also can help you!

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

I believe you could just using Merge Query in Query Editor, as you can select the date and using left outer or anything depends how you want the table, or you could just play around, see what result you want. 

 

Hope it works.

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.