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

12 Replies
manoranjan_d
Specialist
Specialist
Author

i tried to remove the 100 in the expression but it showing incorrectly display of the gauage , but diaplying the 55.55% is perfect in presentastion tab

manoranjan_d
Specialist
Specialist
Author

if amount was huge like million and billions

sunny_talwar

You can do an if statement:

If(Sum({<PAYING_WAY = {'BANK'}>} AMT) > 1000000000,

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

If(Sum({<PAYING_WAY = {'BANK'}>} AMT) > 1000000,

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

If(Sum({<PAYING_WAY = {'BANK'}>} AMT) > 1000,

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