Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
33 | |
18 | |
18 |