Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

gauge charT

PAYING_WAYPAID DETAILSAMT
BANKNOTNULL100
CHEQUENULL200
BANKNOTNULL300
CHEQUENULL400
BANKNOTNULL500
CHEQUENULL600
BANKNOTNULL700
CHEQUENULL800
BANKNOTNULL900
CHEQUENULL1000
BANKNULL1100
BANKNULL1200
BANKNULL1300
BANKNULL

1400

above is my data i need the count for notnull paid details fields for only paying way = bank in percentage wise where the gauge should show the percentage of not null

so i tried the expression its not coming correctly

i used the expression as

=((count({<PAID DETAILS={'NOTNULL'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}>}PAYING_WAY)+

Count({<PAID DETAILS={'NOTNULL'}>}PAYING_WAY)))*100

can i any one help for the gauage chart

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Num(

((Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY) +

Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY)))*100, '##.00%')

or remove *100

Num(

((Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY) +

Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))), '##.00%')

View solution in original post

12 Replies
sunny_talwar

What are you getting? and what do you expect to see?

Anonymous
Not applicable

Hi

Are you looking for 5 NOTNULL paid details divided by the total 9 paying way of BANK which equals 55.55%? Also with you gauge chart you have not selected a dimension have you  as this will affect the calculation?

manoranjan_d
Specialist
Specialist
Author

yes 5 not null divided by all count of 9 paying way bank  of bank, equals to 55.55

i dont know how to use the diemsnion for the specified paying way = bank, i used calcuated dimesniosn as paying way = bank,

it shwing show other percentegae

sunny_talwar

May be try this:

=((Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY) +

Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY)))*100

manoranjan_d
Specialist
Specialist
Author

how to format this to 55.55%

sunny_talwar

Try this:

Num(

((Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY) +

Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY)))*100, '##.00%')

or remove *100

Num(

((Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))/(Count({<PAID DETAILS={'NULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY) +

Count({<PAID DETAILS={'NOTNULL'}, PAYING_WAY = {'BANK'}>}PAYING_WAY))), '##.00%')

Anonymous
Not applicable

Nice solution Sunny. I would favour your second expression without the multiplication by 100.

Kindest regards

Brian

manoranjan_d
Specialist
Specialist
Author

now they want the amount in pie chart where it should show the null value amount and not null value amout, so how to make the format for amount in dollars example $22.5K

sunny_talwar

May be like this:

Num(Sum({<PAYING_WAY = {'BANK'}>} AMT)/1000, '$#,##0.0K')