Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abgnfirdaus
Helper I
Helper I

count test frequency

Hello there. I need help for my problem here. Let say the table is below:

Date testedEquipment no.Red cable Yellow cableBlue cable
24/2/2019TRU10.10.10.1
25/2/2019TRU20.120.110.1
25/2/2019TRU30.10.110.12
2/3/2020TRU10.20.210.22
4/3/2020TRU30.210.20.21
5/6/2021TRU10.30.30.3

 

Then, I want to create table/column that will count the number of test for each equipment. The new table should be like this:

EquipmentNo. of test done
TRU13
TRU21
TRU32

 

I hope you guys can help me. Thank you in advance.

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

HI @abgnfirdaus ,

 

Create a column with below code just in case if any of the column is blank 

Column = COALESCE('Table'[Red cable ],'Table'[Yellow cable],'Table'[Blue cable])

then use this new column as count on your visual

output:-

Samarth_18_0-1642575441796.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

HI @abgnfirdaus ,

 

Create a column with below code just in case if any of the column is blank 

Column = COALESCE('Table'[Red cable ],'Table'[Yellow cable],'Table'[Blue cable])

then use this new column as count on your visual

output:-

Samarth_18_0-1642575441796.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

How to create a custom column to count how frequent the equipment have been tested.

Table 1:

Date TestedEquipmentRed cableYellow cableBlue cable
1/2/2018TRU 10.10.120.1
2/2/2018TRU 20.120.140.12
2/2/2018TRU 30.120.110.1
3/4/2020TRU 20.20.240.21
5/4/2020TRU30.210.220.21
4/6/2021TRU30.310.360.31


I want to create new column that will count the frequency of equipment have been tested. The table should show like this:

EquipmentCount of test
TRU 11
TRU 22
TRU 33


Hope you guys can help me. thank you in adavance.

Hi @abgnfirdaus ,

 

You can refer to below thread:-

 

https://community.powerbi.com/t5/Desktop/count-test-frequency/m-p/2290371#M830064

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.