Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anil_Babu_Samineni

Pivot Calculation Problem

Dear Friends,

Why this pivot table getting problem

Please check the calculation? Sum. Left of everything is working but this is not working

Correct Value is - 30, But here showing 29.

Can i know what is modification i required

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
20 Replies
Anil_Babu_Samineni
Author

Max,

For Month it is working fine with this expression

=sum({<C_DESCRIPTION={'Reportable','Recordable','Restricted work Cases','Lost Work Cases'},P_Des-={'All Plants'} >} DISTINCT S_COUNT)

But, YTD calculation is not working, Can you please help me here.

=sum({<Year={'*'},Month={'*'},C_DESCRIPTION={'Reportable','Recordable','Restricted work Cases','Lost Work Cases'},P_Des-={'All Plants'}>} distinct S_COUNT)

I want to explain, One thing, For above expression if i change Year or Month YTD values are constant. Help me please

Year & Month Fields

year(S_CREATED_DATE) as Year

num(Month(S_CREATED_DATE)) as Month

I don't know why this value is not changed

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful