Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Ja123__
Partner - Creator
Partner - Creator

Set Analysis Numerator, Denominator and Difference correct but % not working

Hi there

I want to display the difference amount as a % of the old/PY value.

I haven't had this issue before and think it may have to do with this measure that I inherited from the old QV model.

As you can see below I have commented out the divided by old as that is where it stops working? Am I interpreting something wrong. I did this on another model with a simple measure and basic set analysis and it worked fine?1.PNG

(Sum({<[Transaction Date] = {"<=$(=vMaxTDate)"}>} If(Effect = 'Debit', [Transaction Amount], -[Transaction Amount])) //New

-

Sum({<[Transaction Date] = {"<=$(=vMaxTDatePY)"}>} If(Effect = 'Debit', [Transaction Amount], -[Transaction Amount]))) //Old. Previous year.

//    /Sum({<[Transaction Date] = {"<=$(=vMaxTDatePY)"}>} If(Effect = 'Debit', [Transaction Amount], -[Transaction Amount]))) //Old. Previous year.
Labels (5)
1 Solution

Accepted Solutions
pasi_lehtinen
Partner - Contributor III
Partner - Contributor III

Hi,

Seems like you have an extra closing parentheses in the end of the expression.

- Pasi

View solution in original post

4 Replies
pasi_lehtinen
Partner - Contributor III
Partner - Contributor III

Hi,

Seems like you have an extra closing parentheses in the end of the expression.

- Pasi

jonathandienst
Partner - Champion III
Partner - Champion III

It looks like the previous year term is zero. You may need to override some date selections if you are making date selections in a field other than [Transaction Date].

You should also confirm that the variable vMaxTDatePY is what you expect and has a valid date.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Ja123__
Partner - Creator
Partner - Creator
Author

Thanks for your response Jonty

Ja123__
Partner - Creator
Partner - Creator
Author

Thank you!!!!! Cannot believe it was that.