I kind of thought this would be pretty easy (and maybe it is) but every example I've come across in searching yields either an error or unexpected results. I have the following measure:
I need to convert this into a measure that gives me the DISTINCTCOUNT (based on a field called HDET01[FFRMNO]) for the records in a table that is filtered on [GAMER]="GAMING".
If I just create a DISTINCT COUNT calculation and then create a slicer with the GAMING column, I can get he desired results, so I'm guessing there must be a way to do this in a measure.
Help appreciated.
-Dom
Code:
Gamer_Cnt:=calculate(countrows(HDET01),filter(HDET01,[GAMER]="GAMING"))
I need to convert this into a measure that gives me the DISTINCTCOUNT (based on a field called HDET01[FFRMNO]) for the records in a table that is filtered on [GAMER]="GAMING".
If I just create a DISTINCT COUNT calculation and then create a slicer with the GAMING column, I can get he desired results, so I'm guessing there must be a way to do this in a measure.
Help appreciated.
-Dom