Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

format expression in pivot table based off qualifier field

I have a pivot table that I have created where I want to format the data in the pivot based off the values contained in a qualifier field.

For example:

pivot.bmp

where form = 'late_loads%' the result for the attribute field eg. Jan-2009 should be a %, for everything else the current format is acceptable.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

I tried to simulate your with some data I have. The following works for me:

Expression:

=if(Right(Form,1)='%',num(Sum(Value),'0.00%'),num(Sum(Value),'#,##0'))

Format:

Expression default.

Result:

temp.JPG

Hope this works.

Regards,

Kiran.

View solution in original post

1 Reply
Not applicable
Author

I tried to simulate your with some data I have. The following works for me:

Expression:

=if(Right(Form,1)='%',num(Sum(Value),'0.00%'),num(Sum(Value),'#,##0'))

Format:

Expression default.

Result:

temp.JPG

Hope this works.

Regards,

Kiran.