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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

How to generate new field in the back end

Hi Qlik,


Please explain on this.

I do have a fields "Safety Category" and Kms Travelled. I used this below calculation in the frond end text object.

=Ceil(sum({<[Safety Category]={'Green'}>} [Kms Travelled]) / sum([Kms Travelled]) *100) & '%'

Instead of writing above set analysis, i need to generate new field with above calculation. Please let me know the code.

Thanks in advance

1 Solution

Accepted Solutions
sunny_talwar

May be like this in a separate table:

KPITable:

LOAD Ceil(Sum(If([Safety Category] = 'Green', [Kms Travelled]))/Sum(Kms Travelled])*100) & % as Ratio

Resident .....;

View solution in original post

2 Replies
sunny_talwar

May be like this in a separate table:

KPITable:

LOAD Ceil(Sum(If([Safety Category] = 'Green', [Kms Travelled]))/Sum(Kms Travelled])*100) & % as Ratio

Resident .....;

rkpatelqlikview
Creator III
Creator III
Author

Many Thanks Sunny.