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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

not calculating depending on the dimension

Hi,

I have some orders and to calculate the freight cost I'm using this formula:

(if(carrier_id='61',if(sum(CoF)=0,'10,2',sum(CoF)*-1), //FBC

if(carrier_id='52',if(sum(CoF)=0,'9,72',sum(CoF)*-1),

if(carrier_id='88',if(sum(CoF)=0,'9,72',sum(CoF)*-1),

)))) //Celeritas)

But if I change the dimension from SalesId to Calendar_Month, the calculation did not work.

Anyone knows why?

Thank's

Eduard

2 Replies
dsharmaqv
Creator III
Creator III

can you post your app

sasikanth
Master
Master

Try this,

if (carrier_id='61' and sum(CoF)=0,'10,2',sum(CoF)*-1, //FBC

if(carrier_id='52' and sum(CoF)=0,'9,72',sum(CoF)*-1,

if(carrier_id='88' and sum(CoF)=0,'9,72',sum(CoF)*-1,

))) //Celeritas)