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

Last year in a table with Month/Year Dimension

Hi guys,

I've tried to make Year vs Last Year calc in a table with year and month dimension, but the set analysis didn't work properly.

sum(Value)

/

Sum({<Year = {"=$(vLY)"}>}Value)

vLY =  Year-1

LY.PNG

i don't know what's happened, because it's seems so simple but i can't make it work.

Any idea to solve my problem?

Thank you guys!

5 Replies
Anil_Babu_Samineni

You may forget to define the variable for vLy

Sum(Value)/

Sum({<Year = {"$(vLy)"}>}Value)

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
Not applicable
Author

Hi Anil , thank you for your help

the line "Act vs LY" in 2017 must be the number of 2017 x 2016

for example:

jan 2017  =  120

jan 2016  =  100

so "Act vs LY" in jan 2017 is 20%

i need that the numbers of 2016 appears in 2017 columns, otherwise i can't see the growth between this years.

thank you.

Anil_Babu_Samineni

I didn't follow you, What is your intention to show. Would you share expected result

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
Not applicable
Author

what I need is to fill  the line "Act vs LY" in 2017  with the number of 2016  in the table below show what I need 

Year201620162016201620162016201620162016201620162016201720172017201720172017201720172017201720172017
Monthjanfebmaraprmaijunjulaugsepoctnovdecjanfebmaraprmaijunjulaugsepoctnovdec
Value100200250304907002003406803001503501202303406543216832341904033535123
Act vs LY 10020025030490700200340680300150350

The problem is that measure must respect set analysis instead of the dimension.

Anil_Babu_Samineni

Still doubt, Act Vs LY means may be Current Year Sales - Last Year Sales. Here you want instead of 2017 Sales 2016 sales need to place. What was the business requirement

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