Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

number formating using set analysis

hi

i am creating a pivot table in which i am having 5 rows and 4 columns.

in the pivot table i have to bring %sign in some rows. how can i achieve that???

my situation is like dis

15 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi Vitulgaur,

For Percentage sign in the row go  to the Properties of the chart => Number Tab = select the Expression => then under the Number Format setting click on the integer and then click on the show in Percentage. then Apply.

Regards,

Nilesh Gangurde

Not applicable
Author

Hello:

If your looking for different number format in the same column, that should be based on some condition.

With that assumption, have written the following expression:

Expression:    =if(Sum(py1) > 1, Num(Sum(py1), '#,##0'), Num(Sum(py1), '#,##0%'))

Have attached the QVW with a similar example, hope that helps..

Thanks,

Narasimha K

Not applicable
Author

Hi,

As said in earlier example you have to use a conditional statement as if so you can differentiate between the rows to identify when to use % and when not to.

then using num() function which gives you required formats.

One very important point to note here is that after using num function, you should make sure that under Number Tab you have chosen number format as Expression default, then only this num() function format will be picked.

temp.jpg

..

Ashutosh

Not applicable
Author

hi Nilesh

if i follow your instructions then it will do the changes in the whole column..i just have to do it in some rows..

regards

Vitul

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Vitul it will not be possible to use the % sign for random cell's you need to define the rules for that, for example if number goes beyond some value or if it decreases below this value.

    Please define the rule and then use expression suggested by Nilesh.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi Vitul,

If you follow Narasimha K advice you should be able to get it to work.

or else, you can tell us that what is your criteria to decide if a row is a % amount ??

Then , we can help you to write this Query.

..

Ashutosh

Not applicable
Author

hi Kaushik

i know where to use the percentage sign...in which rows i want to show it...im goin to attach a screen shot..then it wud be more clear to all of you;

Not applicable
Author

untitled2.JPG

Not applicable
Author

Hi,

Try something like that.

Please find the attached example.

..

Ashutosh