Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
m4u
Partner - Creator II
Partner - Creator II

Calculating the relative percentage

Hello Friends

I have a problem:

I would like to create a line chart, showing sales trend for a number of stores.

X-axis should show years, the Y-axis should display the store's contribution in percentage (current store sales on this year - devide in total sales for this year). Each store will appear as a line.

The problem is when I want to choose just one store. So I see 100%.

I tried different ways, Including "Set analisys","total" Keyword, But each of them creates other problems.

Does anybody have an idea for me?

Many thanks,

Shlomo


2 Replies
pover
Luminary Alumni
Luminary Alumni

Shlomo,

If you want to just ignore the selection of store do something like the following:

sum(Sales)/sum({$<Store=>} Total Sales)

If you want to ignore all selections include a {1}

sum(Sales)/sum({1} Total Sales)

Karl

swuehl
MVP
MVP

Try something like

=sum(Sales) / sum({<Store= >} total<Store> Sales)

The {<Store= >} set expression should clear your selection in Store for the denominator calculation.

Hope this helps,

Stefan