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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kumar2
Contributor III
Contributor III

Mismatch of Data in Front end and Backend Aggregations

Hi,

I am trying to optimize the dashboard size by moving the aggregations to Backend of scripts, while doing this i am facing some issue.

please find the below sample data

S1:
Load * Inline [
Column A,Id,B
A,100,x
A,101,y
A,102,x
B,103,z
B,100,x
C,200,y
D,101,x
];

In the UI calculating the count of distinct Id's  by using the formula ----------- Count(distinct Id)=5

when i am applying the same formula in the backend the count is coming as  "7"  which should be "5"

S2:
Load
"Column A",
B,
Count(DISTINCT Id) as Count
Resident S1
Group by "Column A",
B;

Drop Table S1;

 

This is because of Grouping of the dimensions "Column A" and "B"

 

Is there a way how to achieve this same count function in the Backend

 

Note:- The value should change when i select the dimensions

 

 

Thanks

0 Replies