Skip to main content
Question

Is there a way to calculate a ratio based on two sets of dates where the numerator Received Date is independent of the denominator Billing Date (which happens to be in the case key table)? Please see the attached file for the problem example.

  • October 11, 2022
  • 1 reply
  • 5 views

phil.cook
Level 2
Forum|alt.badge.img

For each Billing Date, I am attempting to count the number of Communications received on that same date even though not all Communications received belong to a document Billed on that date. The issue I am encountering is that only those Communications received on the Billing date are included in the numerator of the ratio. The billing document serves as my case key.

1 reply

Haven't tested it, but I'd try with PU_COUNT(DOMAIN_TABLE(<date column),<some column to count>)

 

HTH