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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
FuzzySteve
New Member

cumulative total based on text field

Hello Everyone,  I have a feeling this will be a pretty easy question for someone out there.

 

I've got some search term data by month and I want to return a total across all data in the separate tables.  

 

Table 1

Term         count

Apples      10

Oranges    5

Grapes      7

 

table 2

Term        Count

Oranges   15

Grapes      6

Pears        3

 

what I would like to visualize on is a total per term. In this example, it would be Oranges 20, Grapes 13, apples 10, and Pears 3.

 

Can anyone start me on the right path to get this solved?  Thanks!

1 ACCEPTED SOLUTION

hmmm not sure why you are doing merge, you should be using append, at end of the day, you will get one table that will something like this:

 

Table 1

Term         count

Apples      10

Oranges    5

Grapes      7

 

Oranges   15

Grapes      6

Pears        3

 

now in your table visual, put two column in value:

 

term and count, and use sum aggregation for count and that will give you the result.

 

**Don't use merge, append please



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

you can create new calculated table in dax to union these tables or append these table using query editor.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Ran a merge and it worked for entries that existed in table 1 but didn't append the new entries into table 2.  (so pears was left out of the resulting table.) 

 

half way there.  Will keep looking.

hmmm not sure why you are doing merge, you should be using append, at end of the day, you will get one table that will something like this:

 

Table 1

Term         count

Apples      10

Oranges    5

Grapes      7

 

Oranges   15

Grapes      6

Pears        3

 

now in your table visual, put two column in value:

 

term and count, and use sum aggregation for count and that will give you the result.

 

**Don't use merge, append please



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @FuzzySteve,

 

Have you tried the solution provided by @parry2k above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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