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: 
Not applicable

Set Analysis division

Hello,

I'm trying to perform a division in Set Analysis, within a pivot table. Both of the below formulae are correct when displayed individually, but when I add the division '/' symbol, no value is returned.

Could someone please let me know the correct syntax?

(Sum ({<BILLED_TIME.PERIOD={$(YTD)}, TIME.PERIOD_FIN_YEAR = , INT_DATE => } BILLED_TIME.BILLED_AMT))
/

(Sum ({<BILLED_TIME.PERIOD={$(YTD-1)}, TIME.PERIOD_FIN_YEAR = , INT_DATE => } BILLED_TIME.BILLED_AMT))

Thanks, Gavin

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Looks wrong in BILLED_TIME.PERIOD={$(YTD-1)}

What is your YTD variable.. i.e. can you let us know the definition of it?

View solution in original post

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

The second formula returns 0?

MK_QSL
MVP
MVP

Looks wrong in BILLED_TIME.PERIOD={$(YTD-1)}

What is your YTD variable.. i.e. can you let us know the definition of it?

Not applicable
Author

Thank you both. Manish, you were correct - a silly mistake by me; YTD-1 should have been PTYD.