Qlik Community

Ask a Question

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Partner
Partner

Same expression but different results

Dear Community,

Can someone give me a hint why the same expression give different results when I use it in pivot table & text box?

QlikSenseProblem.PNG

The result in the pivot table is the correct one but I don't understand why using a text box give me a wrong result.

The data is loaded from QVDs and all expressions show correct results, compared to original QlikView application, except the one expression above. Did someone has a hint or idea what could be the problem ?

Best regards,

Ronny

PS: Unfortunately I can't share the QVF or reproduce the error in a separate file until now.

1 Solution

Accepted Solutions

Ronny

My first thought was that ItemCode is a key between two tables, and then Count( ItemCode ) is not well defined. The reason is that the engine doesn't know in which table to make the calculation. So, you need to use Count( disitnct ItemCode ) or Count( CopyOfItemCode ) instead. But then I saw that you have the same problem with ItemName...

Anyway, the way partial sums are calculated has in fact been changed in the new QIX engine. So any new "unwanted" behaviour is extremely interesting for us at Qlik. After all, it could be a bug. So If you still have this problem, I would be very interested in learning more, or maybe get a copy of the app (or a subset of it) to investigate the problem. Naturally we will treat it confidentially. Mail me directly if you want to.

HIC

View solution in original post

20 Replies
Champion
Champion

will you able to give  expressions what you are using for arriving this value ?

expession which you use in text is same like used in pivot ?

Vikas

Partner
Partner

Hi Vikas,

Yes, expressions are exactly the same, I also replaced the pivot table expression by copy and paste but results are not changing.

Pivot table     = 397701

Text box     = 6426

Count({<[FY]={$(=Max([FY]))}>} ItemCode)

Could this be a bug ?

Regards,

Ronny

Champion
Champion

Hard to say anything sample cab you post sample qvw

Not applicable

Please provide the app, it would be much easier to answer

Not applicable

Hi,

I your data model, do you have others fields in the item table ? (i.e. : ItemLabel). If so, what appens if you use count on it ?

Partner
Partner

Hi Xavier,

yes, [ItemName] is also available and return the same results like [ItemCode].

Pivot table     = 397701

Text box     = 6426

Regards,

Ronny

Partner
Partner

Hi Alexandra

Unfortunately it's not possible to share the application.

I tried to create a sample file but I couldn't reproduce the problem.

Regards,

Ronny

Not applicable

What's the result returned by the KPI object ?

Regards,

Xavier.

Partner
Partner

Hi Xavier,

I apologize for my late reply.

KPI object also return same value(6424) like text object.

I have absolute no idea why result of text/kpi object is different then pivot table/table when using same expression.

Regards

Ronny