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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
indra
Contributor III
Contributor III

how to show percentage below numbers in bracket in single measure in pivot table in qliksense

how to show percentage below numbers in bracket in single measure in pivot table in qliksense

Labels (1)
11 Replies
sbaro_bd
Creator III
Creator III

Hi @indra ,

Try something like this  : [Measure1] & '(' & [Measure2] & ')'.

Regards.

indra
Contributor III
Contributor III
Author

I already used same expression, but not working in pivot table

MatheusC
Specialist II
Specialist II

Use the dual function, it can combine values ​​for you, the function is based on dual(text,number).

https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunct....

The expression below, I leave it just as an example, assign it according to your data

=dual(round(sum(Sales)/sum(total Sales)*100) & '%' & ' ( ' & round(sum(Sales)/1000) &
')',sum(Sales)/1000)

example result:

MatheusC_1-1728650675490.png

 



- Regards, Matheus



Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
sbaro_bd
Creator III
Creator III

I just try the same expression in a pivot table and it works perfectly.

 

2024-10-11_16h10_51.png

Can you show us the result when you use this kind of expression ?

Regards.

indra
Contributor III
Contributor III
Author

Hi, I need to show the below screenshot data in percentage below bracket numbers. Please see the atachment

indra_0-1728880356184.png

 

indra
Contributor III
Contributor III
Author

Hi, any idea for the above one in pivot table?

MatheusC
Specialist II
Specialist II

You won't be able to do this line break in a standard way, maybe some extension or change with CSS, but I'm not sure. I found this solution so I could test it and see if it would work for you.

Add the following in the CSS with Multi KPI:
div.value.ng-binding.ng-scope {
white-space: pre !important;
}

In the expression for newlines with chr(10) :
=Measure1 & chr(10)&
Measure2

- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
seanbruton

This is the solution i would use

indra
Contributor III
Contributor III
Author

Hi Mathe, In pivot table that solution is not working for me.