Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks,
I have created one pivot table, values are showing correct, but totals are not showing correct values , for reference purpose i am adding QVW .
Thanks in advance
You can try putting an aggregation function around your expression in pivot expression like:
Sum( Aggr ( If(.....) , Contact_Type, WEEKEND))
Try this; You need to use the Aggr()
sum(aggr( if(GetFieldSelections(MDESC)='TargetOnly',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"},RightfulOwner={'Y'},TargetFlag={'1'}>}DISTINCT Key), if(GetFieldSelections(MDESC)='Total Territory',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"},RightfulOwner={'Y'}>}DISTINCT Key), if(GetFieldSelections(MDESC)='Full Universe',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"}>}DISTINCT Key)))) ,WEEKEND,Contact_Type))
Would this be the solution you need? see attachment
same error, i didn't get the solution
in qvw we have two chart one is bar and second one is pivot table bar graph is showing correct values but the pivot table is not show the correct values in totals please check and help me
compare the values with bar graph chart
You can try putting an aggregation function around your expression in pivot expression like:
Sum( Aggr ( If(.....) , Contact_Type, WEEKEND))
You can try putting an aggregation function around your expression in pivot expression like:
Sum( Aggr ( If(.....) , Contact_Type, WEEKEND))
Thank you very much Tresesco its working great
Try this; You need to use the Aggr()
sum(aggr( if(GetFieldSelections(MDESC)='TargetOnly',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"},RightfulOwner={'Y'},TargetFlag={'1'}>}DISTINCT Key), if(GetFieldSelections(MDESC)='Total Territory',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"},RightfulOwner={'Y'}>}DISTINCT Key), if(GetFieldSelections(MDESC)='Full Universe',count({=' & Date(Max(WEEKEND) - 77, 'MM/DD/YYYY') & '<=' & Date(Max(WEEKEND), 'MM/DD/YYYY'))"}>}DISTINCT Key)))) ,WEEKEND,Contact_Type))
Hi totals are working fine but Weekly avg and totals are not working could you please help me on that,
i am adding qvw for reference.
Here is the qvw