Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello!
I need a help to create a new collunm at power BI using DAX. In my example I have a colunm1 with some values that are repeat. I need a collunm that count how many times the value is repeated:
Colunm1 | How many times |
A | 3 |
A | 3 |
A | 3 |
B | 2 |
B | 2 |
C | 4 |
C | 4 |
C | 4 |
C | 4 |
D | 1 |
Anybody can help me? Thanks a lot.
Solved! Go to Solution.
@Anonymous
New Col =
CALCULATE(
COUNTROWS( TableName),
ALLEXCEPT( TableName , TableName[Column1] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
New Col =
CALCULATE(
COUNTROWS( TableName),
ALLEXCEPT( TableName , TableName[Column1] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
U need context transition:
CALCULATE(COUNT(Table[Column1]))
This creates a filter on the value in the first column, counting the unique filtered values.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
10 | |
10 | |
10 |