Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Singaravelu_R
Contributor III
Contributor III

Support on Qlik Expression

Hi Team,

Please find below data which I have in table visual,

Policy No Policy From Date Policy To Date Premium Customer Name
2156778 01-01-2024 31-12-2024 500 XYZ private Limitated
2156778 01-01-2024 31-12-2024 800 TATA Limited
2156778 01-01-2024 31-12-2024 900 TATA Limited
2156778 01-01-2024 31-12-2024 1600 XYZ private Limitated

 

I dont want to change anything in backend and want desired results as per below. Please provide some advice to how to achieve below desired results.

Desired Results      
         
Policy No Policy From Date Policy To Date Premium Customer Name
2156778 01-01-2024 31-12-2024 3800 XYZ private Limitated (any one of Customer Name)
Labels (1)
3 Replies
TauseefKhan
Creator III
Creator III

Hi @Singaravelu_R,

Create a new measure for the Premium column in your table visualization:

Sum(Aggr(Sum(Premium), [Policy No], [Policy From Date], [Policy To Date]))

Create a new dimension for the Customer Name column: FirstSortedValue([Customer Name], [Premium])

This will sum up the premiums for each policy and display one of the customer names associated with that policy.

Dana_Baldwin
Support
Support

Hi @Singaravelu_R 

Just for future reference, it looks like this post is regarding Qlik Sense, but this forum is for Qlik Enterprise Manager, a data integration product. If Qlik Sense, please post here to reach the right audience: Qlik Sense | Qlik Community

Thanks!

anat
Master
Master

anat_0-1720834027226.png

 

expression :

=sum(aggr(sum(Premium),[Policy From Date],[Policy No],[Policy To Date]))