Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
theboss-123
Creator II
Creator II

GAUGE not displaying crrect value

hello ,

please should be informed that i used set analysis to calculate sum value and that is correct in cross table but when i use gauge the value is not correct here is my formula 

=num(sum({$<Dim5={'HT'}>}[Conso HT en kg])-sum({$<Dim5={'HT'}>}[Huile TR])/sum({$<Dim5={'HT'}>}[Huile TR]),'# ##0,00%')

 

theboss123_0-1659608576713.png

 

 

Labels (1)
1 Solution

Accepted Solutions
luizcdepaula
Creator III
Creator III

It seems you just missing brackets so the subtraction can happen first. Try the formula below:

=num((sum({$<Dim5={'HT'}>}[Conso HT en kg])-sum({$<Dim5={'HT'}>}[Huile TR]))/sum({$<Dim5={'HT'}>}[Huile TR]),'# ##0,00%')

View solution in original post

5 Replies
luizcdepaula
Creator III
Creator III

Hi TheBoss,

Try changing the number formatting to the below to '##,#0%'

=num(sum({$<Dim5={'HT'}>}[Conso HT en kg])-sum({$<Dim5={'HT'}>}[Huile TR])/sum({$<Dim5={'HT'}>}[Huile TR]),'##,#0%')

Cheers,

Luiz

theboss-123
Creator II
Creator II
Author

Hi Dear Luiz i tried to changed the number formatting but the some thing i think that there  is already  something wrong with the calcula

luizcdepaula
Creator III
Creator III

It seems you just missing brackets so the subtraction can happen first. Try the formula below:

=num((sum({$<Dim5={'HT'}>}[Conso HT en kg])-sum({$<Dim5={'HT'}>}[Huile TR]))/sum({$<Dim5={'HT'}>}[Huile TR]),'# ##0,00%')

theboss-123
Creator II
Creator II
Author

Thanks The Big Boss that works fine

theboss123_0-1659629748707.png

 

luizcdepaula
Creator III
Creator III

Great to hear! If you can mark the reply as correct answer will be greatly appreciated. Cheers!