I need a report which will have several summaries for 2001 hospital payments, physician payments, rehab payments, etc.
This is my code from the select expert.
{payments.ccomptype} in ["05", "44"] and
{claimheader.cclmtype} = "WC" and
{claimstubwc.ccltype} in ["I", "M"] and
{claimheader.cjurstate} = "GA" and
{payments.dissued} in Date (2001, 01, 01) to Date (2001, 12, 31)
I have a grandtotal which sums payments.namount based on the above criteria. I then type the total for ccomptype of 05 & 44 on another document. Then I run the same report again changing the ccomptype to "02", "06". Then I run the same report again. I have 17 totals which I need to obtain.
I want to put all these summaries on one report. I removed the payments.ccomptype from the select expert and tried creating a formula such as sum ({payments.namount}) where payments.ccomptype = "04" or "55". This didn't work. I tried if {payments.ccomptype} = "04" or {payments.ccomptype} = "55" then sum ({payments.namount}). This didn't work. What is the correct syntax? I tried this with grouping the report on payments.ccomptype and then with no group. Do I put my 17 formulas in the report footer?
This is my code from the select expert.
{payments.ccomptype} in ["05", "44"] and
{claimheader.cclmtype} = "WC" and
{claimstubwc.ccltype} in ["I", "M"] and
{claimheader.cjurstate} = "GA" and
{payments.dissued} in Date (2001, 01, 01) to Date (2001, 12, 31)
I have a grandtotal which sums payments.namount based on the above criteria. I then type the total for ccomptype of 05 & 44 on another document. Then I run the same report again changing the ccomptype to "02", "06". Then I run the same report again. I have 17 totals which I need to obtain.
I want to put all these summaries on one report. I removed the payments.ccomptype from the select expert and tried creating a formula such as sum ({payments.namount}) where payments.ccomptype = "04" or "55". This didn't work. I tried if {payments.ccomptype} = "04" or {payments.ccomptype} = "55" then sum ({payments.namount}). This didn't work. What is the correct syntax? I tried this with grouping the report on payments.ccomptype and then with no group. Do I put my 17 formulas in the report footer?