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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors