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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
elior
Regular Visitor

Summarize Values To One Column Without Aggregation

Hi,

 

I have the following tables that I want to add from Table 1 the total summarized values From Table 2

Table1 - number of units bought each hour

Table2 - number of items each buyer bought

 

when im trying to bring to table1 the number of units that was bought in total for each buyer from table2, im getting Aggregation for every hour instead of just one column that will contain the sum items.

 

the visual is Matrix

 

how can I get the "Want To Get:" table that attached instead of "Result:" ?

 

thank you

 

Table 1:(Units)

Buyer678910Boxes
Alex105618
Adam205629?
Ben18

 

 

 

10

41405?
Dan6020141212?
Jim221515543?

 

Table2: (items)

Buyer678910
Alex11111
Adam35421
Ben68151
Dan55245
Jim83321

 

Result:

Buyer6Items7Items8Items9Items10Items
Alex10151611181
Adam20355642291
Ben18610841140551
Dan605205142124125
Jim2281531535423

1

 

Want To Get:

Buyer678910Items
Alex1056185
Adam20562915
Ben18104140521
Dan602014121221
Jim22151554317
7 REPLIES 7
Anonymous
Not applicable

Thank you @samratpbi   for your prompt reply.

Hi @elior  ,
May I ask if your problem has been solved? If the problem has not yet been solved, please feel free to ask us a question. Would you be able to provide more data (without private information) so that we can better understand and solve the problem you are experiencing.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

elior
Regular Visitor

I cannot unpivot it, im using it in direct query

Hi, if you cant use Power Query, then instead of the transformation, you can do sum of all the columns from Table 2 using DAX.

 

If this helps o resolve your problem, then please mark it as solution, Thanks!

maybe dax will be ok, by which formula ?

sum of all the columns from table 2, i.e. SUM(T2[7]) + SUM(T2[8])...... so on. where I assume 7,8... are the column names in 2nd table T2

the table is dynamic query.

i tried it, but with the same result - aggregation by hour.

 

 

 

samratpbi
Super User
Super User

Hi, In power query, for table 2, you need to select Buyer column and unpivot other columns. That will give you 3 columns, Buyer, Attribute (which is the items) and values.

Then you join the 2 tables based on Bauyer. Better to have Buyer dimension table and join based on Buyer name.

Also create a simple measure like Items value = SUM(T2[value]) (i.e. sum of the value column from the unpivoted table

Then in a table visual, bring Bauyer from the dimension table, all the columns from table 1, then the new measure which was created on table 2..

 

If this helps to resolve your problem, then please mark it as solumn provided, Thanks!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors