Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi,
I have a table trying to count different attainments:
This is the table I have:
Rank |
>75% |
>75% |
>75% |
0%-25% |
0%-25% |
0%-25% |
0%-25% |
0%-25% |
0%-25% |
0%-25% |
0%-25% |
25%-50% |
25%-50% |
50%-75% |
50%-75% |
50%-75% |
50%-75% |
50%-75% |
50%-75% |
and this is the table I'm trying to get:
Rank | >75% | 0%-25% | 25%-50% | 50%-75% |
Count | 3 | 8 | 2 | 6 |
How do I create a measure to accomplish that?
Solved! Go to Solution.
Thank you Jihwan,
Unfortunately that would not work for me, as I have other columns too.
Example:
Category Achieved
A >75%
B >75%
C 0%-25%
D 0%-25%
E 0%-25%
F 25%-50%
H 50%-75%
So I need to speciafy the column within the table
Hi @Thunders ,
Please use this DAX:
Measure =
CALCULATE(
COUNTROWS('Table'),
ALLEXCEPT(
'Table',
'Table'[Rank]
)
)
If I add other columns:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Jihwan,
Unfortunately that would not work for me, as I have other columns too.
Example:
Category Achieved
A >75%
B >75%
C 0%-25%
D 0%-25%
E 0%-25%
F 25%-50%
H 50%-75%
So I need to speciafy the column within the table
Hi @Thunders ,
Please use this DAX:
Measure =
CALCULATE(
COUNTROWS('Table'),
ALLEXCEPT(
'Table',
'Table'[Rank]
)
)
If I add other columns:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please check the below picture and the attached pbix file.
COUNTROWS function (DAX) - DAX | Microsoft Learn
Count measure: =
COUNTROWS('Table')
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |