Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Peter_Brunner
Creator
Creator

Set analysis Sum Sales two days into one day

Hi All,

I have been trying to add Saturdays sales into Mondays Sales but NOT show Saturdays sales Date on Graph. I have been using syntax below with

Mondays and Saturdays sales showing have tried several combinations but still no go. any help would be appreciated

if(Calendar_WeekDay ='Mon'or Calendar_WeekDay ='Sat' ,Sum({$<BusinessArea={[Building Supp]},Calendar_WeekDay={'Sat','Mon'}>}SalesValue))

regards Peter

7 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi  Peter,

     I would recommend you to create a seperate field in Script which will show Monday in front of sunday and then use the field in chart to show the data.

     Something like this.

     Load if(wildmatch(Weekday(Date),'Sat*'),'Mon',Weekday(Date)) as New_WeekDay.

     From xyz.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
somenathroy
Creator III
Creator III

Try  with this:

if(Calendar_WeekDay ='mon'or Calendar_WeekDay ='sat' ,

Sum(TOTAL{<BusinessArea={[Building Supp]},Calendar_WeekDay={'sat','mon'}>}SalesValue),

sum(SalesValue))

Regards,

Som

Peter_Brunner
Creator
Creator
Author

Hi Kaushik,

thanks for your help I did use it at script level but it still showed Saturdays I changed the dimension to a field to only show Selling Day Dates. 

also thank you Som for your help

regards Peter

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Have a look at the attached example for more clarification.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Peter_Brunner
Creator
Creator
Author

Hi Kaushik,

first thank you for reply

Yes this works for the Days of the week.

I need it to be Date driven so I can show all selling dates for current month in graph.

if you select from your Dates list box the 2/3/2013 which is a Satuday and then select 4/3/2013

which is a Monday it does not add Satudays total to Mondays but if you do via weekdays it does

Peter

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Dear Peter,

       If you select the dated then you will not be able to see the bar chart.

       Will you please tell us why you want to have this on date selection basis? when you can have that on weekday basis.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Peter_Brunner
Creator
Creator
Author

Hi Kaushik,

sorry for late reply, and thank you for your help.

The reason I need dates is the Sales graph I am doing is by Month and I need to show all the working days or "Dates" in graph.

Sorry it is my fault I did not explain it properly, but I have it working now.

Best regards Peter