Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart data not showing up correctly, I used the same expression from pivot table which shows correct data

I used the same expression from pivot table which shows correct data, but the chart data is incorrect.

For example, in Qlikview the weighted total from my pivot is showing $64954,

whereas when I copied/pasted the same expression into chart =num(sum(IF(TODAY()>[Opp Exp Decision Date], ([Local Member Firm Fees]*[Opp Probability]/100)/295*0.5,[Local Member Firm Fees]*[Opp Probability]/100/295)/IF(((([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)=0),1,([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)),'#,###.'), the incorrect value 1,332,827 shows up.

Thanks for your help.

   

6 Replies
sunny_talwar

I guess where did you come uo with the value $64954? I don't see that value in the Weighted Total column. Would it be possible to share a sample to look at?

Best,

Sunny

Not applicable
Author

64954 is the sum of these four rows (277,044, 337,500, 10000, 25000).

what are some possible reasons that the data found in chart is different from the pivot table even though their expressions are the same.

sunny_talwar

One of the biggest reason is the if statement takes place dimension wise. For some dimensions, your if statement may return true or false, but for another one it would do something else. What is the dimension or dimensions from the table above? May be try this with Aggr Function:

=Num(

Sum(Aggr(

Sum(If(Today() > [Opp Exp Decision Date], ([Local Member Firm Fees]*[Opp Probability]/100)/295*0.5, [Local Member Firm Fees] * [Opp Probability]/100/295)/If(((([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)=0),1,([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)),

DimensionsFromYourTableHereSeparatedByComma)),

,'#,###.')

This DimensionsFromYourTableHereSeparatedByComma is a placeholder and you need to replace this with the dimensions you have in your table above.

Not applicable
Author

Hi,

are you referring to the dimension I used from the pivot table?

I am not too sure what to do here.

sunny_talwar

Yes the dimensions from your pivot table

Not applicable
Author

Hi,

I figured out the reason. The calculation in pivot table is actually off.

I am trying to divide this expression, numerator: =IF(TODAY()>[Opp Exp Decision Date], ([Local Member Firm Fees]*[Opp Probability]/100)/295*0.5,[Local Member Firm Fees]*[Opp Probability]/100/295)

with denominator: =IF(((([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)=0),1,([Opp Est Eng End Date]-[Opp Est Eng Start Date])/30)

Can somebody please guide me on how to link the two with division?