Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have 1 table where I need to add 1 to each row of a column which will be a unit count column such as the following
column 1 unit count
aaa 1
abc 1
abb 1
acb 1
acc 1
etc...
Solved! Go to Solution.
Answered my own question. really simple to do. create calculated column type: Unit Count = 1
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new column.
Unit Count CC =
VAR currentitem = Data[Column1]
RETURN
COUNTROWS ( FILTER ( Data, Data[Column1] = currentitem ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Answered my own question. really simple to do. create calculated column type: Unit Count = 1
User | Count |
---|---|
41 | |
27 | |
23 | |
18 | |
15 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |