Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Friends,
I am looking for the solution to get the unique count from the column list column which I have mentioned in the below snapshot. Thanks in advance.
Solved! Go to Solution.
Hi,
MyMeasure =
VAR MyValues =
ADDCOLUMNS( 'Table', "Paths", SUBSTITUTE( [Column1], ",", "|" ) )
VAR MyTable1 =
SELECTCOLUMNS(
GENERATE(
MyValues,
ADDCOLUMNS(
GENERATESERIES( 1, PATHLENGTH( [Paths] ) ),
"MyPaths", TRIM( PATHITEM( [Paths], [Value], TEXT ) )
)
),
"Paths", [MyPaths]
)
VAR MyTable2 =
ADDCOLUMNS( MyTable1, "Rank", RANKX( MyTable1, [Paths],,, DENSE ) )
RETURN
MAXX( MyTable2, [Rank] )
Regards
Hi,
MyMeasure =
VAR MyValues =
ADDCOLUMNS( 'Table', "Paths", SUBSTITUTE( [Column1], ",", "|" ) )
VAR MyTable1 =
SELECTCOLUMNS(
GENERATE(
MyValues,
ADDCOLUMNS(
GENERATESERIES( 1, PATHLENGTH( [Paths] ) ),
"MyPaths", TRIM( PATHITEM( [Paths], [Value], TEXT ) )
)
),
"Paths", [MyPaths]
)
VAR MyTable2 =
ADDCOLUMNS( MyTable1, "Rank", RANKX( MyTable1, [Paths],,, DENSE ) )
RETURN
MAXX( MyTable2, [Rank] )
Regards
You're welcome!
Regards
I need the solution only from DAX code.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |