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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
manu1512
Creator
Creator

Optimising the Kpi LOGIC

Hi all,

I am using the following logic for KPI .But it seems very heavy and takes so much time?

Pls help me to optimise it

(count({<Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'N'},Flag ={1}>}distinct if(Mod_EquipmentStartDate<=Year_MaxDate and Valid_From_Date<=Year_MaxDate, Equipment_Id))

+count({<Equipment_isSMA_Upgrade_Eligible={1},Temp_isEquipmentNoContract={0},Is_Deleted={'Y'},Flag ={1}>}distinct if(Mod_EquipmentStartDate<=Year_MaxDate and Valid_From_Date>=Year_MaxDate, Equipment_Id)))

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

Issue must be the if statement.

trying setting flags for those conditions and use that in set analysis

or use something like below

PrimaryKey= {"=YearField1>=YearField2"}*{"=YearType1<=Yearfield3"}

Anil_Babu_Samineni

Is that the same? https://community.qlik.com/message/1563532

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful