Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ranjitalenka
Contributor
Contributor

Qlik sense bar chart is showing 100 percentage

Hi ,

My bar chart in qlik sense is giving 100 percent instead of giving correct values

The code is giving correct value for KPI.

My code:

Count({<[SLA Met]= {'SLA Met'},[#Call Month]=>}number)/Count({<[SLA Met]={'SLA Met','Not Met'}, [#Call Month]=>}number)

Labels (2)
5 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @ranjitalenka,

Please modify your expression as below.

Count({<[SLA Met]= {'SLA Met'},[#Call Month]=>}number)/

Count({<[SLA Met]={'SLA Met','Not Met'}, [#Call Month]=>} Total number) 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
ranjitalenka
Contributor
Contributor
Author

Thanks a lot for your reply, I tried the same, Still bar chart is showing 100%.

vinieme12
Champion III
Champion III

Check the count of "SLA MET" and "SLA NOT MET" do you have values for both? your "SLA NOT MET" might be 0

 

also are you using any dimension in your chart or just with a measure? make sure to use a dimension that has an appropriate relation to the metric

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
ranjitalenka
Contributor
Contributor
Author

Hello,

I have values for both "SLA MET" and "SLA NOT MET",I am using just a measure, how to use dimension?

Thanks in advance.

vinieme12
Champion III
Champion III

try a table with Dimension = [SLA MET]

 

Expression1

Count({<[SLA Met]={'SLA Met','Not Met'}, [#Call Month]=>}number)

 

and expression 2

Count({<[SLA Met]={'SLA Met','Not Met'}, [#Call Month]=>}number)

/

Count({<[SLA Met]={'SLA Met','Not Met'}, [#Call Month]=>}TOTAL number)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.