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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
ol_dev
Creator
Creator

Why would a measure expression works in Qliksense desktop but not in Qliksense enterprise?

Hi,

I am trying to use an expression to calculate the value of a measure. The value appears correct in Qliksense desktop locally, but when deployed to server environment it shows 0. The expression makes comparison to variables which stores data values, which looks like the one below: 

Count({<IsFlagged={1}, BaseDate={">=$(vStartDate) <=$(vEndDate)"}>} ServiceID)

Is there a reason why such expression works perfectly fine in Qliksense Desktop but not in Qliksense Enterprise server environment? And how can I fix the issue? Thanks. 

Labels (4)
4 Replies
lennart_mo
Creator II
Creator II

Hi @ol_dev,

in my experience this should work. Could you please take a look, at what the grey section on the bottom of the expression editor resolves your expression to? 

This is what it looks like for me:

lennart_mo_0-1784790292927.png

Best regards

Lennart

marcus_sommer
MVP
MVP

It's not a matter of the measure else of the underlying data. A different environment may contain another data-set in regard to the included columns/rows as well as the numbers might now strings and vice versa and/or having a different formatting which could prevent the expected results - and this may happens in any stage of the ETL. Therefore take at first a look on the data itself.

hanna_choi
Partner - Creator II
Partner - Creator II

Hello @ol_dev 

Would you to check the date variable values returned on the desktop and the date variable values returned on the server?

robert_mika
MVP
MVP

Check and compare the Main section(the first page in Load script) in both environments ,this(among some others) maybe the reason.

As the initial variable maybe set up in different way.