Forum Discussion
DAX distinct count measure on Pipe separated string
- 3 years ago
=
VAR _p =
CONCATENATEX ( VALUES ( FactSalesTag[Tag] ), 'FactSalesTag'[Tag], "|" )
VAR _t =
ADDCOLUMNS (
GENERATESERIES ( 1, PATHLENGTH ( _p ) ),
"@tag", TRIM ( PATHITEM ( _p, [Value] ) )
)
RETURN
COUNTROWS ( SUMMARIZE ( _t, [@tag] ) )
Thanks wdx223_Daniel for your response. I'm still getting same error. I can see the data Temp but when I drag related columns . example Date Dimension then it gives error as below. Is there any better way to debug this issue. Please let me know
BackEnd Query:
EVALUATE
SUMMARIZECOLUMNS(
'Date'[Fiscal Month],
'Date'[Month Key],
"UniqueTagMeasureCount", [UniqueTagMeasureCount]
)
ORDER BY
'Date'[Fiscal Month] ASC,
'Date'[Month Key] ASC
Error:
The arguments in GenerateSeries function cannot be blank.
IF(_SplitData=""||_SplitData="|",0,COUNTROWS(....))