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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sum() acts strange

Hi All, May be am doing a silly mistake, But what might give me this result. What exactly "12/30/1899" mean?? Please find the screenshot.

sum(budget) give 12/30/1899

and avg(budget) give 0.47.

If there are multiple records, sum should be multiples of avg. But how its displaying 12/30/1899.

Capture.PNG

19 Replies
Anonymous
Not applicable
Author

Kushal, Am not able to reproduce the situation. It's not happening now. I just want to know what might have happened.:(

Anil_Babu_Samineni

Your original question is not clear, I would highly asking you to create sample data atleast 5 rows and then tell us your expected result in UI. So then we can help you

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
sunny_talwar

Can you at least share some screenshots? May be while loading your data you need to use Num(Sales, '#,##0.00) as Sales

Anonymous
Not applicable
Author

Sunny, the screen shot i have attached in the question is the only one i have. Am not getting the issue anymore.

The changes i did are removing a sync table. And with that the issue is gone. Am not sure what exactly happened. Thinking there might be some thing i did it wrong which converted by decimal number to a invalid date format value.

Thank you guys for your time.

sunny_talwar

I am still not sure what exactly are you saying here

Capture.PNG

Here you mentioned that the issue was while retrieving the data from Excel. But in your screenshot you are showing a straight or pivot table with the incorrect formatting?

Kushal_Chawda

Sunny, that is why I suggested to check the Straight table Number format. May there was a format of date

sunny_talwar

It seems that the formatting might have been set as date on the number's tab, is that what you are thinking happened also?

Kushal_Chawda

exactly bhai.. aapun ye hi bolna chahta

Anonymous
Not applicable
Author

No guys, The format was Expression default. I checked that. Leaving the straight table aside, when I preview the data with a Ctrl+ T I was looking at 12/30/1899. as value.

sunny_talwar

That's exactly what I meant... if you see 12/30/1899 in data model, then you could have tried Num(Sales) to see if that fixed the issue... but since its already resolved, you should be all good....

Please close this thread if you have got what you wanted. You can mark assumed answer or your own response as correct

Best,

Sunny