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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Exclude total for one date

Hi ,

We were showing the business starts from every last day of month end to till date and now we were doing normal total.

But the businesses want to exclude the month end and include the total starts from 1st of month.

Below is the output qlikview which need to exclude the first row value in the total.

Untitled.png

Dimension: =if(Date>='$(vMonthEnd)' and Date <='$(vCurrMonth)',Date)

where vMonthEnd  = (monthend(addmonths(Date(today(),'MM/DD/YYYY'),-1)))

      vCurrMonth  = =(MonthEnd(today()))


Expression :  Sum(Product$)

Chart Type :  Straight Table

So the final total should show as $21,600,243 - $3,841,198 = $ 17,7590,45(Final Total $)

Thanks..

Labels (1)
23 Replies
nareshthavidishetty
Creator III
Creator III
Author

Hi Sunny,

I have used the division and day as below

division  =if(Date>='$(vMonthEnd)' and Date <='$(vCurrMonth)',Date)

Day =pick(match(WeekDay(Date),'Mon','Tue','Wed','Thu','Fri','Sat','Sun'),'Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday')


is this logic Sum({<Division -= {.......}>}Aggr(Sum(Product$), Division, Day)) will work?


Thanks..

sunny_talwar

Yes, I am almost certain it will, just not sure how your data is to provide suggestion related to the set analysis.

nareshthavidishetty
Creator III
Creator III
Author

Can you please provide the full expression which includes division and day dimensions mentioned above.Actually am got little bit of confuse.

Thanks..

sunny_talwar

Would you be able to provide a sample to help us help you better

nareshthavidishetty
Creator III
Creator III
Author

yeah sure but how to attach document in this.

Thanks..

nareshthavidishetty
Creator III
Creator III
Author

Hi Sunny,

Please find attached spread sheet.In qlikview we derived Division and Day as Calculated Dimension.

Thanks..

sunny_talwar

Would it be possible to provide the raw data behind this output? or provide the sample application you have been working with? If confidentiality is a concern, you can look here:

Preparing examples for Upload - Reduction and Data Scrambling

nareshthavidishetty
Creator III
Creator III
Author

Hi Sunny,

Attached is the same app.

Thanks..

vinieme12
Champion III
Champion III

Frank has already pointed out the problem in your Expression

You vMonthend is 7/31/2016

if you want to exclude this date then you should be comparing as just Greater than and NOT as Greater than equal to which then includes your monthend date. Just remove the equal sign

=if(Date>'$(vMonthEnd)' and Date <='$(vCurrentmonth)',Date)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.