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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Monthly value % calculation

Hi All,

I have a requirement as follows

the dimension is Month and Company.

i need to find the market share for each company in manufacturing market.

so i have kept the dimension as both MonthYear and company.and it is a line chart which shows individual lines for company.

now the Expression should be in such way that it should take

current month value for each company

/

Current month value for all companies

Now the issue is when i using this exp

sum({<Type={'Current'},AREA={'MANUFACTURE'}>}SALES)

/

sum({<Type={'Current'},AREA={'MANUFACTURE'},COMPANY=>}total SALES)

Then the numerator will give the output fr each month where as in denominator it will take for whole year.But it should not be the case.

But when i select a Month then i will get correct output..

But more than one Month is selected then again the result will be wrong.

Can anyone help me with this?

Thanks in advance.

Regards,

Reena

1 Solution

Accepted Solutions
PrashantSangle

Hi,

add <MonthYearField> after TOTAL keyword

like

sum({<Type={'Current'},AREA={'MANUFACTURE'}>}SALES)

/

sum({<Type={'Current'},AREA={'MANUFACTURE'},COMPANY=>}total<MonthYear> SALES)

regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

7 Replies
Anonymous
Not applicable
Author

any sample data?

Chanty4u
MVP
MVP

did u tried wit ALL

sum({<Type={'Current'},AREA={'MANUFACTURE'}>}SALES)

/

sum({<Type={'Current'},AREA={'MANUFACTURE'},COMPANY=>}AllSALES)

PrashantSangle

Hi,

add <MonthYearField> after TOTAL keyword

like

sum({<Type={'Current'},AREA={'MANUFACTURE'}>}SALES)

/

sum({<Type={'Current'},AREA={'MANUFACTURE'},COMPANY=>}total<MonthYear> SALES)

regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

when i am using ALL it will take the entire sales irrespective of Moth and year

Not applicable
Author

Thanks a lot ..

It worked.

new Learning..

Chanty4u
MVP
MVP

Hmmm ....

if u got the solution.please close the thread by making correct and helpful answers.

Thanks

Suresh chanty

Not applicable
Author

Done..Already..