Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

13 Month Trends and Current Mon vs. Previous Month Calculations

Hi All,

Could some one please help in providing the below logic in a sample QVW:

  1. Last 13 month trends, based on a particular month selected, backward 13 months from that selected month 
  2. Current Month vs Previous Month calculations

Regards!

1 Solution

Accepted Solutions
ali_hijazi
Partner - Master II
Partner - Master II

check attached document

I can walk on water when it freezes

View solution in original post

18 Replies
ali_hijazi
Partner - Master II
Partner - Master II

Suppose your expression is Sum(Sales) and suppose your SAles Date in the transactions is Date

then for previous month:

sum({< Year=,Month=,Date={"$(=num(DayStart(Addmonths(Date(max(Date)),-1))))"}>}Sales)

Last 13 Months

sum({< Year=,Month=,Date={">=$(=num(DayStart(AddYears(Date(max(Date)),-1))))"}>}Sales)


these num(dayStart are needed in case your dates values are numbers(QlikView format)


I can walk on water when it freezes
dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi Ali,

Thank you for the help.

Could you please show this in a sample QVW please?

ali_hijazi
Partner - Master II
Partner - Master II

give me a sample data and I will write the expressions for you

sorry I don't have sample data from my side

I can walk on water when it freezes
dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi Ali,

Attached is the sample set of data. Please help me with a sample QVW

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi All,

Any help on this request please?

Regards,

Dicky Mohanty

ali_hijazi
Partner - Master II
Partner - Master II

Check attached document

elaborate more if this is not what you exactly want

sorry for the late reply

I can walk on water when it freezes
dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi Ali,

Thank you for the help.

Can it be shown in some graphical way, may be line chart or something else?

Alos, how the Current Month vs. Previous Month calculations can be displayed?

ali_hijazi
Partner - Master II
Partner - Master II

check attached document

I can walk on water when it freezes
ali_hijazi
Partner - Master II
Partner - Master II

check attached document

I can walk on water when it freezes