I've created a very basic script in MS SQL using a CASE statement but getting odd behaviour in LR. The output is two columns from the DAUDITNEW table where I am expecting the first column to have the AUDITSTR name and the second column to have a count. The output is both columns have the count appear. Script is as follows. I think I've read that CASE doesn't work in LR.
select CASE WHEN DAUDITNEW.AUDITSTR = 'Create' THEN 'CREATE' ELSE DAUDITNEW.AUDITSTR END, COUNT(*) from dauditnew GROUP BY AUDITSTR
Ultimately, the end users would like to see something more user friendly instead of the DAUDITNEW AUDITSTR name in the report output.
Thanks,
Dave