Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Douwe_KB
Contributor II
Contributor II

Change formula in Table based on selection?

Hi there,


I currently have an overview table of customer IDs and their sales for every possible Product Group that we offer. If I select a single customer the following calculation works perfectly and shows the correct percentages, see example below:

Douwe_KB_0-1681980283006.png

However, when I include all other customer IDs the percentages change.. Instead of using the "Omzet" (Sales) total PER customer ID. It now takes the total of sales: 

Douwe_KB_1-1681980462911.png

The correct percentage for "Boter" should be 62.39%, but it now shows 0.45%.

 

This is the formula I am now using in my table to calculate "Daadwerkelijk percentage".

Sum({<CProductgroep>} Omzet)/Sum( TOTAL {<Klantnaam>} Omzet)

 

Where Omzet is Sales.

 

Any help is appreciated. Thanks!

 

 

Labels (3)
1 Reply
MayilVahanan

Hi

Try like below

Sum({<CProductgroep>} Omzet)/Sum( TOTAL<Klantnaam> Omzet)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.