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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 ) )
Answered my own question. really simple to do. create calculated column type: Unit Count = 1
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |