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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ceil - Error: Garbage after expression : ","

Hi guys,

Someone know what's up in this expression?

Ceil( Max( Aggr( Sum({1<Currency = {$(=GetFieldSelections(Currency))}>}Warehouse.Money) ,SubRegion ,Calendar.Week)) ,0.1)

I don't understand a mistake in Ceil =(

Thank you!

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

This expression works properly, there is no issue with the parameter 0.1 to Ceil()

Ceil( Max( Aggr( Sum({1<Currency = {$(=GetFieldSelections(Currency))}>}Warehouse.Money) ,SubRegion ,Calendar.Week)) ,0.1)


It will round off to the next given level, assume that your expression returns 3.88 and 0.1 will 3.9


I think you forgot to give = in variable.  Give = infront of the expression.


Regards,

Jagan.

View solution in original post

7 Replies
m_woolf
Master II
Master II

Have you looked at

Max( Aggr( Sum({1<Currency = {$(=GetFieldSelections(Currency))}>}Warehouse.Money) ,SubRegion ,Calendar.Week))

to see what it returns?

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

Try to add " on your set analysis like :

Ceil( Max( Aggr( Sum({1<Currency = {"$(=GetFieldSelections(Currency))"}>}Warehouse.Money) ,SubRegion ,Calendar.Week)) ,0.1)

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
anbu1984
Master III
Master III

Ceil( Max( Aggr( Sum({1<Currency = {"$(=Concat(Chr(39) & Currency & chr(39),','))"}>}Warehouse.Money) ,SubRegion ,Calendar.Week)) ,0.1)

Not applicable
Author

Thank you for all responses!

My expression working properly, but when I want to set a variable with my expression,I get an error in Ceil function as when I delete ',0.1', working properly!

Regards!

anbu1984
Master III
Master III

It should work. Can you post sample app with Ceil issue

jagan
Partner - Champion III
Partner - Champion III

Hi,

This expression works properly, there is no issue with the parameter 0.1 to Ceil()

Ceil( Max( Aggr( Sum({1<Currency = {$(=GetFieldSelections(Currency))}>}Warehouse.Money) ,SubRegion ,Calendar.Week)) ,0.1)


It will round off to the next given level, assume that your expression returns 3.88 and 0.1 will 3.9


I think you forgot to give = in variable.  Give = infront of the expression.


Regards,

Jagan.

jagan
Partner - Champion III
Partner - Champion III

Hi,

If you got the answer please close this thread by giving Correct Answer to the useful post, so that it would be helpful for others.

Regards,

Jagan.