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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Bharathi09
Creator II
Creator II

To show percentage in pivot table

Hi All,

 

I'm creating pivot table in QS.

I need to get percentage for certain field

 

Bharathi09_0-1666157814672.png

There is error while creating percentage for model

Count([CI Master ID])/Sum(([CI Master ID]))* 100....I used this expression but it's showing null values

The field I need to use inside is CI Master ID

 

Please help in creating percentage

 

Thanks

Labels (1)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

so maybe like this:

Count([CI Master ID])/Count(Total [CI Master ID])

View solution in original post

4 Replies
justISO
Specialist
Specialist

Hi, try to find where is a problem by dividing your expression into parts and see are they both provide result. 

Count([CI Master ID]) probably will work. If Sum([CI Master ID]) will give you nothing, maybe its needed to be converted to number with Sum(Num([CI Master ID]))?

Additionally, rather than *100, use number formatting as number and choose percentage.

Bharathi09
Creator II
Creator II
Author

No sum is giving zero

Actually I need to show like Model count/Totals * 100

For example for one row one model count is 9 and Total model model count is 20543 and *100 then it gives 0.04%
Like this I wanna show percentage for every model
justISO
Specialist
Specialist

so maybe like this:

Count([CI Master ID])/Count(Total [CI Master ID])

Bharathi09
Creator II
Creator II
Author

Thanks alot, it worked