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

Using "Day" field to divide by

Hello. I am trying to us the Day field in my expression to divide by. As shown below option 1 works I receive a % amount but in option 2 I receive a blank return.

=Sum(HdmsARAmount)/(Sum(HdmsClaimOtherAdjustments + HdmsClaimMACReductions + HdmsClaimRefunds + HdmsClaimGrossCharge)/30))

=Sum(HdmsARAmount)/(Sum(HdmsClaimOtherAdjustments + HdmsClaimMACReductions + HdmsClaimRefunds + HdmsClaimGrossCharge)/Day(MonthEnd(HdmsClaimDateOfService)))



I would really appreciate any help on this.


Cliff

1 Solution

Accepted Solutions
sunny_talwar

May be you need Min or Max function around HdmsClaimDateOfService?

=Sum(HdmsARAmount)/(Sum(HdmsClaimOtherAdjustments + HdmsClaimMACReductions + HdmsClaimRefunds + HdmsClaimGrossCharge)/Day(MonthEnd(Max(HdmsClaimDateOfService))))

View solution in original post

3 Replies
sunny_talwar

May be you need Min or Max function around HdmsClaimDateOfService?

=Sum(HdmsARAmount)/(Sum(HdmsClaimOtherAdjustments + HdmsClaimMACReductions + HdmsClaimRefunds + HdmsClaimGrossCharge)/Day(MonthEnd(Max(HdmsClaimDateOfService))))

Anonymous
Not applicable
Author

Thank you I will try this and let you know. Thank you again.

Anonymous
Not applicable
Author

Hi Sunny you are the best! Thank you so very much for this help and so quick. I really appreciate this.