Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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.