Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
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??

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
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?

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