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: 
Anonymous
Not applicable

set analysis

Hello Everyone

My instruction work correctly for each row but when you select some values in chart, it doesn't calculate correct avrage.

if(IsNull(RecieveMonth) ,Avg('42280'- SendMonth ), Avg(RecieveMonth-SendMonth))

i would much appreciate if any body here could helpme

1 Solution

Accepted Solutions
miguelbraga
Partner - Specialist III
Partner - Specialist III

You need to convert 42280 to month like this month('42280') and transform your function to this:

if(IsNull(RecieveMonth) ,Avg(month('42280')- SendMonth ), Avg(RecieveMonth-SendMonth))

View solution in original post

5 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

You need to convert 42280 to month like this month('42280') and transform your function to this:

if(IsNull(RecieveMonth) ,Avg(month('42280')- SendMonth ), Avg(RecieveMonth-SendMonth))

Anonymous
Not applicable
Author

thanks Braga Miguel

miguelbraga
Partner - Specialist III
Partner - Specialist III

If my answer was the right one, please, mark it as the correct

Anonymous
Not applicable
Author

oh dear yes you right but my "Sendmonth" is not a date format it's number like 42280 so in this case it doesn't need to convert


ahmar811
Creator III
Creator III

can you upload the .qvw file sample plz