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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Lifesigns
Contributor
Contributor

Conditional Sum based on Dimension

Hi All,

Can't seem to get this one figured out...

I have a list of employees, the Item they booked time against and the forecasted time.

Now when there is a bank holiday I have to amend their forecast and remove the allocated bank holiday time, I thought that would be simple but can't get it right.

Here is an example:

Data...

NameItemForecastDate
John DoeScone531/05/2021
John DoeTea531/05/2021
John DoeCake1531/05/2021
John DoeLearning531/05/2021
John DoeBank Holiday731/05/2021
John DoeCoffee531/05/2021
John DoeScone1007/06/2021
John DoeTea1007/06/2021
John DoeCake1507/06/2021

 

  31/05/202107/06/2021
NameItemForecastForecast
John DoeScone510
John DoeTea510
John DoeCake1515
John DoeLearning50
John DoeBank Holiday70
John DoeCoffee50
 Total4235

 

The issue I have is that the forecast includes the bank holiday and the total forecast for John Doe should be 35 for that week not 42, so I was hoping I could create an expression that would take the largest one for 31/05/2021 which is Cake and subtract the bank holiday from there so Cake would be 8 and the total would be 35.

It's a large list with various employees and their items vary but the bank holiday always shows like that.

Appreciate any input!

Thanks,

Shane

0 Replies