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: 
renuka_sasikumar
Creator III
Creator III

Conditional Expression.

Hi,

I have a CY Sales & PY Sales

Now when I select 2015 I get data for this year but while comparing data with PY I get all the months data but I should only get data as of CY Max month.

For Eg:

                                                                                   

2015JANFEBMARAPRMAYJUNEJULYAUGSEPOCTNOVDECTOTAL
CY SalesXYZXYZABC
PY SalesXYZXYZXYZXYZXYZXYZXYZXYZXYZXYZXYZXYZABC

Here for PY I should get data only till Feb.

Is there any possible ways.

Thanks & Regards,

Renuka S

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

I'm sorry, it shouldn't work. I made a mistake in my suggested modification. What about this one:

..., Month = {'<=$(=Max(Month))'}...

View solution in original post

5 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

This is a LYTD comparison. Add the following set modifier to your PY expression:

..., Month = {'$(=Max(Month))'}...

This will restrict the last month displayed in PY to the maximum month available in the selected year.

renuka_sasikumar
Creator III
Creator III
Author

Hi,

Thanks for immediate reply.

But its not working.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

It should, at least as far as you description goes.

Can you post a sample app with the same behavior? Otherwise we may keep guessing for a while...

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I'm sorry, it shouldn't work. I made a mistake in my suggested modification. What about this one:

..., Month = {'<=$(=Max(Month))'}...

renuka_sasikumar
Creator III
Creator III
Author

Hi,

Thanks I did the same Now its working.

Thank you very much.

Thanks & Regards,

Renuka S