Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I get correct percentage

Hi,

I have a straight table and Bar chart. when I am clicking particular month it is showing values 100% in both Straight table and Bar chart. when I am selecting two months it is showing correct percentages. But only for single month it is showing 100% where the values is 34%. How can I get the correct percentage eventhough if I click one month. Please find attched.

Thanks.

1 Solution

Accepted Solutions
pgrenier
Partner - Creator III
Partner - Creator III

Hello Amelia,

A few suggestions:

  1. as your Reference field may contain data of type Text as well as type Number, I would suggest using Count() rather than Sum()
  2. By checking the Relative check box, you are forcing QlikView to represent the data in a relative manner compared to the rest. It might throw off your users by thinking the Failure rate is 12% for a given month while it is in fact 24%. The 12% represents the relative amount of failure rate compared to the rest of the months.
  3. If you need the result to be presented in a percentage, you may change the way QlikView displays the result under the Number tab

Please find attached a new version of your QVW file.

Regards,

Philippe

View solution in original post

8 Replies
israrkhan
Specialist II
Specialist II

what is your expression , and dimensions?

Not applicable
Author

Please find attached Annuals_COPY.qvw

Not applicable
Author

Hi Amelia

look at this

best regards

Chris

Not applicable
Author

Hi,

Sorry I coudn't able to find any change in the qvw. Is that correct?

pgrenier
Partner - Creator III
Partner - Creator III

Hello Amelia,

A few suggestions:

  1. as your Reference field may contain data of type Text as well as type Number, I would suggest using Count() rather than Sum()
  2. By checking the Relative check box, you are forcing QlikView to represent the data in a relative manner compared to the rest. It might throw off your users by thinking the Failure rate is 12% for a given month while it is in fact 24%. The 12% represents the relative amount of failure rate compared to the rest of the months.
  3. If you need the result to be presented in a percentage, you may change the way QlikView displays the result under the Number tab

Please find attached a new version of your QVW file.

Regards,

Philippe

mphekin12
Specialist
Specialist

Amelia,

Try this version.  I basically unselected the Relative option on the Expression tab and formatted the expression to display with one decimal place as a percent.

I hope this helps.

Not applicable
Author

Thanks and it's working.

Not applicable
Author

Hi Amelia

sorry it was yours not mine

here it is

Chris