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: 
surajap123
Creator III
Creator III

wrong percent value in straight tbl

Hi All,

I have the below three expressions in the straight table.

=(sum({<Year={$(=Max(Year))}>}ATotal)+ sum({<Year={$(=Max(Year))}>}STotal))/1000  //show value in thousands

=(sum({<Year={$(=Max(Year)-1)}>}ATotal)+ sum({<Year={$(=Max(Year)-1)}>}STotal))/1000  //show value in thousands

=(Column(2) - Column(3)) / Column(2)

-the first one is to show YTD Sales for current year.

-the second one shows YTD sales for previous year

-the third one is to show the YTD Variance.

=For the third expression i have done percentage settings (ie. Number tab--> fixed to 1 and enabled 'show in percentage'.

But, if you see the screen shot below, few percent value are above 100%, which seems wrong.

Please let me where i am doing wrong.

screen fo.png

Labels (1)
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Looks like its working properly to me. Look at the last line. Your variance expression is:

     (7 - 244) / 7   =   -237/7   ~     -3000%

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Looks like its working properly to me. Look at the last line. Your variance expression is:

     (7 - 244) / 7   =   -237/7   ~     -3000%

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps you meant to calculate (244 - 7) / 244?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
surajap123
Creator III
Creator III
Author

I was confused with the results initially. You are right, the result are correct. Thanks...