Quicksight issue in calculated field

Hello ,
I have an issue with quicksight dashboard, I want to calculate the HC of the outbound and then divide the number of assosciate in inbound on this number. I want to create a calculated field that shows me the OB headcount even if the department is not OB ( I want this calculated filed to not be affected of the filters I apply and always show the OB headcount)
. and the reason behind that is when I apply a filter for example to IB, I don’t want the value of OB to be disappeared.
I have attached a screenshot with dummy values that may help to understand the idea.



if I understand you correctly, you can do this with sumOver and partition by Shift. The value that is aggregated is ifelse(Home Dept = ‘Outbound’,TOTAL HC,0).

So for every Department except Outbound it uses 0, so in the end you get 149. Because we partition by Shift, you get 79 for Day and 70 for Night.

Please test it with your data.


1 Like

@thomask Thankyou for your kind replay!
I managed to do it , however I am having an issue as you can see in the picture, the subtotal is not showing after adding the calculated field
Even though I enabled it from the pivot options.
I want the subtotal to show (189/267)=70.7%

Any ideas?!

picture 2

@thomask Can you please help me?

Hey @khkr999. Thanks for your question. I messaged one of our SAs to see if they can take a look at this tomorrow if you haven’t heard back by then.