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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation on dimension

Dear Experts,

Please check on the attached files and help us how to create the calculation for SALES vs FORCAST. We tried "  =IF([TYPE]='SALES',SUM([S_LBS]),IF([TYPE]='FORECAST',SUM([F_LBS]),SUM([SF_LBS]+[S_LBS]))) "  and it did not work.

Basically we need to know if sucha calculation is doable or not?

Thanks,

Nima

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Are you looking for a solution similar to what is in the attached qvw file?

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Can you please functionaly say what you are trying to do ..?

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi ,

Thanks for replying.

Make it simple, let's say if we want to add SALES & FORCAST like (SALES+FORCAST)  OR  (SALES - FORCAST) or any other calculation between 2 dim.

Thanks,

Nima

nagaiank
Specialist III
Specialist III

Are you looking for a solution similar to what is in the attached qvw file?

Not applicable
Author

Thanks Krishnamoorty,

You save my life

Nima,