Comments (1)
The Above was achieved using the below variables
New Variables were created to achieve this
- vSetFULLYear - the Full Year based on the selected year/month. Not same as YTD
- vSetPreviousFULLYear – the Full LAST Year based on the selected year/month. Not LY YTD
- vSetFULLMonth - The FULL Month based on the selected month
- vSetFULLPreviousYearMonth - The FULL Month of last Year based on the selected month
//---------------------------------------------------------------------
//Gets Data from 01/01/2019 to 31/12/2019 if the selected year is 2019
//Gets Data from 01/01/2018 to 31/12/2018 if the selected year is 2018
// FULL Year of the Selected year
//---------------------------------------------------------------------
Let $(_fieldPrefix)vSetFULLYearModifier =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'$(_vClearFieldList)
);
Let $(_fieldPrefix)vSetFULLYear =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'{$<
@($(_fieldPrefix)vSetFULLYearModifier)
}'
);
//---------------------------------------------------------------------
//Gets Data from 01/01/2018 to 31/12/2018 if the selected year is 2019
// FULL Previous Year of the Selected year
//---------------------------------------------------------------------
Let $(_fieldPrefix)vSetPreviousFULLYearModifier =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'$(_vClearFieldList)
);
Let $(_fieldPrefix)vSetPreviousFULLYear =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'{$<
@($(_fieldPrefix)vSetPreviousFULLYearModifier)
}'
);
//---------------------------------------------------------------------
// Gets data from 01/12/2019 to 31/12/2019 if the selected month is Dec-19
// Whereas MTD gives data from 01/12/2019 to 19/12/2019 (if today is 19/12/2019)
// Full Month Total of the selected month
//---------------------------------------------------------------------
Let $(_fieldPrefix)vSetFULLMonthModifier =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'$(_vClearFieldList)
);
Let $(_fieldPrefix)vSetFULLMonth =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'{$<
@($(_fieldPrefix)vSetFULLMonthModifier)
}'
);
//---------------------------------------------------------------------
// Gets data from 01/12/2018 to 31/12/2018 if the selected month is Dec-19
// Whereas Last Year MTD gives data from 01/12/2018 to 19/12/2018 (if today is 19/12/2019)
// Full Month Previous Year Month
//---------------------------------------------------------------------
Let $(_fieldPrefix)vSetFULLPreviousYearMonthModifier =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'$(_vClearFieldList)
);
Let $(_fieldPrefix)vSetFULLPreviousYearMonth =
MapSubString('_qvctemp.Calendar.EscapeCharsMap',
'{$<
@($(_fieldPrefix)vSetFULLPreviousYearMonthModifier)
}'
);
from qlikview-components.
Related Issues (20)
- Semantic error QlikviewComponents-11.2 / exportModel.qvw HOT 1
- ExportModel Error HOT 4
- QlikView: Sybase data encoding
- Syntax Error during DB extract with Qlik 12.2 Nov 2017 SR 2 HOT 3
- Qvc.Calendar: _f_DateIsFuture manteins last field name of calendar created HOT 1
- Qvc.Calendar HOT 13
- Qvc_ListFiles documentation
- qvc.calendar - Set variables for current date and and current date previous year HOT 1
- Date selection problem HOT 1
- Issue with tables whose name starts with a number (lack the square brackets)
- Variable to previous year from current selection
- CALL Qvc.GetFieldValues HOT 3
- qvc.qvs works in 12.10 but not in 12.40. Unknown statement error HOT 6
- Calendar, Qvc.Calendar.v.SparseDates HOT 1
- Issue with naming the full name month field in Calendar
- Add monthnr HOT 3
- Issues with LinkTable HOT 2
- Issue with Qvc.SegmentedStore Qvc11.3 HOT 2
- Issue with using Qvc.ImportModel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlikview-components.