Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mall1m
Partner - Contributor III
Partner - Contributor III

[Set Analysis] Last Month fot which value is not null

Hi all,

I have several indicator for which I need to calculate through an expression the value for last month for which value is not null

Monthsite ASite B
923111
1026127
1121140
12null155

in the below example,I need to obtain in my graph:

Site A --> 21

Site B --> 155

I manage to get the last month (12)

But I get Site --> null

Site B --> 155

I suppose i could combinate something like max(month where len(my_value)>0) but I don't know how to do that

Does anybody has an idea ?

Thanks in advance

1 Solution

Accepted Solutions
mall1m
Partner - Contributor III
Partner - Contributor III
Author

I manage to obtain my result through a variable

vLastMonthReported=Max(if(len(my_value)>0 AND len(Month)>0, Month))

and the following set analysis

Month={'=Month=vLastMonthReported'}

View solution in original post

2 Replies
mall1m
Partner - Contributor III
Partner - Contributor III
Author

I manage to obtain my result through a variable

vLastMonthReported=Max(if(len(my_value)>0 AND len(Month)>0, Month))

and the following set analysis

Month={'=Month=vLastMonthReported'}

Not applicable

Hi,

Can you please post a qvw with the example? Because I am looking for the same concept to get it to work but I am not able to reuse your syntax...