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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Please describe

Expression : if(columnno()<>0,$(vPerFormula)/$(vPerFormulaTotal),$(vPerFormula)/$(vPerFormulaPartialSum))

Not getting the if(columnno()<>0,,) and vPerFormula expression as well.

vPerFormula = sum({$<TranType = {$(vAmountType)},CurrentPer = {1},Fiscal_Year = {$(=max(Fiscal_Year))}>} Amount)

Please if any body explain me.. will be helpful

4 Replies
qlikview2015
Creator II
Creator II

Hi !

Which Field you want to check if there is a 0 ?

Best Regards

Mike Preuss

suvechha_b
Creator III
Creator III
Author

the expression is like this :

if(columnno()<>0,$(vPerFormula)/$(vPerFormulaTotal),$(vPerFormula)/$(vPerFormulaPartialSum))

qlikview2015
Creator II
Creator II

You want to check if the ColumnNo is null.

if(columnno()<>0,                         $(vPerFormula)/$(vPerFormulaTotal),$(vPerFormula)/$(vPerFormulaPartialSum))

But you have to write a field in to the brackets i think, or?

suvechha_b
Creator III
Creator III
Author

It might be , if ColumnNo is null.

Please also help me in the following expression :

vPerFormula = sum({$<TranType = {$(vAmountType)},CurrentPer = {1},Fiscal_Year = {$(=max(Fiscal_Year))}>} Amount)