Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
n1ef5ng1
Creator
Creator

Dashbord sum(TOTAL)

Hi all,

I am trying to create a dashboard for the user therefore, no selection is needed from the user input.

One of the expression that I would like to create is MarketShare by current year.

sum(sales) / sum(TOTAL(sales) will be the market share throughout, however I have ten years of data and I would like to only find the market share for this year.

 

=

sum({<Year={"$(=max({<Year=>} Year))"}>} sales)
/
sum(TOTAL(TEU)<Year = today())

I managed to get the first part correct, however on the second part, how can i find the total sales in one code

thanks

Labels (1)
2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

=

sum({<Year={"$(=max({<Year=>} Year))"}>} sales)
/
sum(TOTAL {$ <Year={"$(=max({<Year=>} Year))"}, myCode = {'TEU'}>} Sales)

MK_QSL
MVP
MVP

sum({<Year = {'$(=Year(Today()))'}>}sales) / sum(TOTAL{'Year = {'$(=Year(Today()))'}'}sales)