Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
bill_mtc
Partner - Creator
Partner - Creator

How to accumulate values when having multiple dimensions?

Hi Community,

I would like to seek help from you if there are possibilities to accumulate values when having multiple dimensions in a straight table? This is a client requirement which I pretty need to address the concern. Find below the sample chart, I highlighted the column where it does not worked, even using Full Accumulation.

Cumulative - Multiple Dimension.PNG

Attached herewith is the sample application used in the provided chart above.

NOTE: Seems like the accumulative will only work in having one dimension. Hope there is workaround for multiple dimensions.

Regards,

Bill

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi,

Try expression as

Rangesum(Above(TOTAL Sum(Sales),0,RowNo(TOTAL)))/Sum(TOTAL Sales)

Sort expression for product dimension as

=Aggr(Rank(TOTAL Sum(Sales)),Product,Brand)


Capture.PNG

View solution in original post

8 Replies
ecolomer
Master II
Master II

tamilarasu
Champion
Champion

Hi,

Try expression as

Rangesum(Above(TOTAL Sum(Sales),0,RowNo(TOTAL)))/Sum(TOTAL Sales)

Sort expression for product dimension as

=Aggr(Rank(TOTAL Sum(Sales)),Product,Brand)


Capture.PNG

bill_mtc
Partner - Creator
Partner - Creator
Author

Hi Tamil,

Thanks for the help. Would also like to ask how can I sort the report by Sales %? I modified the data a little, there are product with same brand but different supplier. But what should be displayed in the report is sorted by Sales % per Brand, regardless of the supplier.

sort sales percentage.PNG

What is currently happening is that it is sorted per Brand, per Supplier.

I cannot able to attach the updated sample application with updated inline data. Find below the updated inline data.

Data_tmp1:

Load * Inline [

Product, Brand, Supplier, Sales

A, AB, ABC, 10

B, AB, ABC, 50

C, CB, CDE, 32

D, DB, ABC, 60

E, DB, DEF, 88,

A, DB, HJI, 28

];

swuehl
MVP
MVP

Like this?

Product Brand Sales Sales % Cumulative Sales
268 100% 0%
AAB104%4%
BAB5019%22%
ADB2810%33%
EDB8833%66%
DDB6022%88%
CCB3212%100%

Then just go to sort tab and promote the Brand column to the top.

edit:

Missed that you want to sort by Sum(Sales):

BrandPerc.png

Product Brand Sales Sales % Cumulative Sales
268 100% 0%
ADB2810%10%
EDB8833%43%
DDB6022%66%
AAB104%69%
BAB5019%88%
CCB3212%100%
bill_mtc
Partner - Creator
Partner - Creator
Author

Hi swuehl‌,

It should be sorted by Sales % of Product, the brand must be disregarded. So the result would be descending order of Sales %. How would it possible?

swuehl
MVP
MVP

Do you want Sales % shown in descending order or do you want sales % of product? That's a difference in your chart.

edit:

Maybe like this?

Product Brand Sales Sales % Cumulative Sales
268 100% 0%
EDB8833%33%
DDB6022%55%
BAB5019%74%
CCB3212%86%
ADB2810%96%
AAB104%100%
tamilarasu
Champion
Champion

Hello Bill,

          Create a calculated dimension as =Aggr(Rank(TOTAL Sum(Sales)),Product,Brand) and name it as "Rank" or something. Now, go to the sort tab and promote the Rank dimension to top. Also, make sure the Sort by should be Numeric values and Ascending order is selected. I have attached sample file for reference.

Capture.PNG

bill_mtc
Partner - Creator
Partner - Creator
Author

tamilarasu‌ this is amazing! Thank you for sharing. It works in my application.