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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
yanzhao_LBS
Helper II
Helper II

How to get a table like this

I have 3 tables

1.

yanzhao_LBS_0-1731896997275.png

2.

yanzhao_LBS_1-1731897011798.png

3.

yanzhao_LBS_2-1731897039461.png

and I want a table to display all the information detail like this:

 

yanzhao_LBS_3-1731897231217.png

but it seems that 

it's ok to display the sum of them or one is sum the other is detail  ,but not ok for the both details

sum of them:

yanzhao_LBS_4-1731897320797.png

 

one is sum the other is detail:

yanzhao_LBS_5-1731897391752.png

not ok for the both details:

yanzhao_LBS_6-1731897413089.png

is that impossible to display both detail? or how to display them in one visual?

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

It looks like the expected output only need the data from table 2 and 3.

You can create index and custom columns in PQ for both table, then merge two tables.

11.PNG

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

9 REPLIES 9
ryan_mayu
Super User
Super User

It looks like the expected output only need the data from table 2 and 3.

You can create index and custom columns in PQ for both table, then merge two tables.

11.PNG

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




another question ,if i don't know which type has the larger number of record,(in this case,request count is bigger than consume,so i can merge like this way) if I dont know which one has the bigger number or it changes all the time ,does it work also?

this solution doesnot conisider the number of rquest and consum qty. 

It only depends on the rows of each product code. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




but if i merge like this (conusmed is on the top)

yanzhao_LBS_0-1731911967724.png

the result will be like this 

yanzhao_LBS_1-1731912022023.png

 

@yanzhao_LBS 

when you are merging the tables, press ctrl and select product code and custom columns. You will see the numbers beside the column name. Make sure the numbers are matching in both tables. 

 

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ok.yes.that works.

i followed you step ,but get different result,is there anything need to set in options and settings?

yanzhao_LBS_0-1731910087648.png

 

Ashish_Mathur
Super User
Super User

Hi,

In the Fourth table, why are cells D3 and D7 left blank?  Shouldn't they be 30 and 20?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

as Code001 and Code003 both only have 1 consumed record.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.