CR XI
My tables have a hierarchal setup.
DistUnits
DistCodes
DealerCodes
Not All DistCodes have a DealerCode
I have a report with a crosstab. Currently the report is grouped by
Group1 Date
Group2 DistUnit
Within Group 2 is a crosstab setup as follows
Column is customerName
Row is a formula @routename that just has DistcodeName
Summarized Field @circCount is DistCodeCirculationCount
Everything is working up to this point. I need the crosstab to show the DealerCodeNames instead of the DistCodeName if there is data in the DealerCode information, if there isn't I need it to show the DistCodeName
I assume I need to do this with forumulas for the rows and summarized fields, but I can't get the data display correctly.
If I use @routename
Then only the records with that have a dealercode linked to them show up on the report. The records with DistCodes only disappear.
Any help is appreciated.
Thanks
My tables have a hierarchal setup.
DistUnits
DistCodes
DealerCodes
Not All DistCodes have a DealerCode
I have a report with a crosstab. Currently the report is grouped by
Group1 Date
Group2 DistUnit
Within Group 2 is a crosstab setup as follows
Column is customerName
Row is a formula @routename that just has DistcodeName
Summarized Field @circCount is DistCodeCirculationCount
Everything is working up to this point. I need the crosstab to show the DealerCodeNames instead of the DistCodeName if there is data in the DealerCode information, if there isn't I need it to show the DistCodeName
I assume I need to do this with forumulas for the rows and summarized fields, but I can't get the data display correctly.
If I use @routename
Code:
if dealercodecirculationcount > 0 then dealercodeName
else distcodeName
Then only the records with that have a dealercode linked to them show up on the report. The records with DistCodes only disappear.
Any help is appreciated.
Thanks