Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can anyone assist with tracing the error in the following expression:
Count(DISTINCT({<[Doctor Name]={'PIM'}>}[Script Number])) + Count(DISTINCT({<[Doctor Name]={'PID'}>}[Script Number]))
Regards
I would say that Set expression comes before the DISTINCT keyword like this:
Count({<[Doctor Name]={'PIM'}>} DISTINCT [Script Number]) + Count({<[Doctor Name]={'PID'}>} DISTINCT [Script Number])
-Rob
Change like this.
=Count (distinct {<[Doctor Name]={'PIM'}>}[Script Number]) + Count( distinct {<[Doctor Name]={'PID'}>}[Script Number])
"Distinct" is not a function.
you have extra brackets: no brackets necessary after distinct...try this
Count(DISTINCT {<[Doctor Name]={'PIM'}>}[Script Number]) + Count(DISTINCT {<[Doctor Name]={'PID'}>}[Script Number]))
I would say that Set expression comes before the DISTINCT keyword like this:
Count({<[Doctor Name]={'PIM'}>} DISTINCT [Script Number]) + Count({<[Doctor Name]={'PID'}>} DISTINCT [Script Number])
-Rob
Hi Rob
Many thanks, you are right, that works.
Regards.
Chris
Many thanks, I used Rob's recommendations.
Many thanks. I used Rob's recommendations