Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 18 | |
| 11 | |
| 10 |