Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
tellmalaika17
Contributor II
Contributor II

Error message

Hi,

While using below expression, getting an error as "error in expression ')' expected".

=num(sum({$<month={$(=max(month))}>}
Sales/1000000)/ num (right ($(=max(month)),2))
//*12,'#,##0')

The above expression gives error only when there is no data. I want it to display 'No data to display' or show '0' when there is no data but unable to change this in error message.

Appreciate any help in this regard.

Thanks,

11 Replies
devarasu07
Master II
Master II

Hi,

may be this?

=num(sum({$<month={$(=max(month))}>}Sales/1000000)/right($(=max(month)),2),'#,##0')


Regards,

Deva

sumanta12
Creator II
Creator II

=num(sum({$<month={$(=max(month))}>}Sales/1000000)/ num (right ($(=max(month)),2)),'#,##0')

Anil_Babu_Samineni

do you mean to display error message using condition from General Tab??

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
avinashelite

where your using this expression ??? to show the error message or in the expression ?

tellmalaika17
Contributor II
Contributor II
Author

doesn't work

tellmalaika17
Contributor II
Contributor II
Author

yes

tellmalaika17
Contributor II
Contributor II
Author

using this expression in a text object... the denominator is not getting evaluated since the month has '-' value.

tellmalaika17
Contributor II
Contributor II
Author

Tried still doesn't work...

Anil_Babu_Samineni

The above expression gives error only when there is no data. I want it to display 'No data to display' or show '0' when there is no data but unable to change this in error message.

WWhat is that mean which i highlighted one?

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)