Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

General Discussions

Discuss any topics that are not product-specific here.

Inventory Trend Graph- Daily- Weekly- Monthly

ivignesh
5 - Atom

Hi I'm trying to create an input file for Qlik dashboard for Inventory Value- Daily/ Weekly/ Monthly. So I'm recording Daily values and trying to create Week Flag and Month Flag. Week flag- 1 : For past weeks, dates of End of week value, For current week, Latest Date (or today's date) & 0 for the rest. similarly for Month Flag.

 

Desired output looks like below: (Date values are the input). Please help. 

 

 

DateWeekWeekFlagMonthFlag
3/28/20231300
3/29/20231300
3/30/20231300
3/31/20231301
4/1/20231310
4/2/20231400
4/3/20231400
4/4/20231400
4/5/20231400
4/6/20231400
4/7/20231400
4/8/20231410
4/9/20231500
4/10/20231500
4/11/20231500
4/12/20231500
4/13/20231500
4/14/20231510
4/20/20231611
1 REPLY 1
martinding
13 - Pulsar

Hi @ivignesh,

 

Here is one way to do it:

martinding_0-1682026807920.png

 

Labels