Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, if the below is my Power BI desktop screen with table created,
What measure can I use to calculate that there are 4 of the same materials in the table? showing next to each line as below.
The count column must show the result as 4 as below.
Material Number Count
| 39055xAJRE | 4 |
| 39055xAJRE | 4 |
| 39055xAJRE | 4 |
| 39055xAJRE | 4 |
Thanks in advance 🙂
Table name "All Orders"
Solved! Go to Solution.
Hi @Anonymous ,
I did a test, the reference is as follows:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Material Number Count],
"Count",
CALCULATE (
COUNT ( 'Table'[Material Number Count] ),
FILTER (
ALL ( 'Table' ),
MAX ( 'Table'[Material Number Count] ) = 'Table'[Material Number Count]
)
)
)
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I did a test, please try the following formula:
M =
CALCULATE (
COUNTROWS ( 'All Orders' ),
FILTER ( ALL ( 'All Orders' ), 'All Orders'[Material Number ] = "39055xAJRE" )
)table =
SUMMARIZE (
'All Orders',
'All Orders'[Index],
"M",
CALCULATE (
MAX ( 'All Orders'[Material Number ] ),
FILTER ( ALL ( 'All Orders' ), 'All Orders'[Material Number ] = "39055xAJRE" )
),
"C", [Measure]
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Thank you, however, I don't only have one material to count, "39055xAJRE", but a list of materials.
Is there a solution for that?
Hi @Anonymous ,
I did a test, the reference is as follows:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Material Number Count],
"Count",
CALCULATE (
COUNT ( 'Table'[Material Number Count] ),
FILTER (
ALL ( 'Table' ),
MAX ( 'Table'[Material Number Count] ) = 'Table'[Material Number Count]
)
)
)
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@amitchandak Hi, unfortunately, this did not work. I have many of this material in my source data, but only 4 in my table data. I need to summarize so that the count only shows that of the material on the summarized table.
Regards
Vicky
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |