Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
andrefpc
Partner - Creator II
Partner - Creator II

Excel formula

Hi everyone...I have quite a big project with qlikview, with lots of formulas and I was thinking of some way to optimize its calculation...I tought of an excel file, with the formulas in QV syntax and in QV, where I need the value to be displayed I just invoke the correct line of the excel.

Is this possible?

Thanks in advance.

7 Replies
Not applicable

Hi andrefpc,

     Could you please explain your situation with an example. It would be easier to understand whats the problem if there was a scenario.

Thanks.

Best Regards,

Ram    

andrefpc
Partner - Creator II
Partner - Creator II
Author

Hi Ram, thanks for your reply!  Basically I my excel spreadsheet would have 2 columns, one with the ID and one with the formula:

ID      Formula

1       =sum({somekindofsetanalysis} $(amountofsales))

And in QV where I need to know the amount of sales, I'll just invoke the Excel line, based on the ID attribute, not quite sure wether this is possbile and if is the correct approach.

Regards,

Andre

Not applicable

Hi Andre,

You should actually, convert a copy of the excel sheet into a .csv file. This would preserve the computed values, and the new .csv file would have the sales amount value instead of the formula you have used. I think this would be a much better approach.

Hope it helps you out!

Regards,

Ram

daveamz
Partner - Creator III
Partner - Creator III

Hi Andre,

You can store your formulas into a .txt file like a variable eg.

vFormulaSales = qty*price

For txt file you will use include statement:

$(Include=ListOfFormulas.txt);

Then you can invoke formulas into your qlikview objects like =sum($(vFormulaSales)) or directly =$(vFormulaSales), depends on your formula;

Best regards,

David

andrefpc
Partner - Creator II
Partner - Creator II
Author

Ram doesn't that mean i need to change my .csv file anytime my sales amount changes?

andrefpc
Partner - Creator II
Partner - Creator II
Author

David, couldn't manage to do it that way either, made the .txt, load into qlikview but it's unable to do the calculations as 0 appear when I invoke the formula...

Best regards,

Andre

Not applicable

Hi All,

you can write same formula in scripting after data attribute fetch in scripting table

use function to compute value in scripting.