Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression not displaying correctly !!!

Dear QV Experts,

Two Straight Tables,

1) With Certificate No, displaying the Earned Premium Correctly.

2) Without Certificate No, Not displaying Earned Premium Correctly.

Please find the screenshot below,

EP4.jpg

Please suggest me. Enclosed the QVW.

1 Solution

Accepted Solutions
marcus_sommer

Without the dimension Certificate_No you need an aggr-function to calculate the expression on this level and you need to include all necessary dimensions - in your case the Certificate_No and Date.

=If (MonthYear < $(vFiscalStartDt),0,

If (MonthYear > $(vFiscalEndDt),0,

sum(aggr((Sum(distinct Premium_Amt)/365) * Count( DISTINCT Date), Certificate_No, Date))))

- Marcus

View solution in original post

2 Replies
marcus_sommer

Without the dimension Certificate_No you need an aggr-function to calculate the expression on this level and you need to include all necessary dimensions - in your case the Certificate_No and Date.

=If (MonthYear < $(vFiscalStartDt),0,

If (MonthYear > $(vFiscalEndDt),0,

sum(aggr((Sum(distinct Premium_Amt)/365) * Count( DISTINCT Date), Certificate_No, Date))))

- Marcus

Not applicable
Author

Thanks a lot. It worked.