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
gusdahu
Helper IV
Helper IV

Count the Frequency of an Occurrence

Power BI Community,

 

I have a data set that includes the following information in two columns:

  1. Purchase Order (PO) Number (i.e. 1234)
  2. PO Description  (i.e. Repair front and rear gates.)

*Both columns are in TEXT format.

 

I would like to count the number of times a particular word is being used in all the descriptions within my data set. Is it possible to perform such an exercise within Power BI?

 

Regards,

Gus Dahu

6 REPLIES 6
v-frfei-msft
Community Support
Community Support

Hi @gusdahu ,

 

One sample for your refererence. We can create a measure to work on it.

 

Measure = 
CALCULATE (
    COUNTROWS ( Table1 ),
    FILTER (
        Table1,
        SEARCH ( "Repair", Table1[PO Description], 1, BLANK () ) <> BLANK ()
    )
)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft, I appreciate you responding to my post. I performed the calculation you mentioned below. Unfortunately it did not produce the results I was looking for. I will continue my search to locate the formula I need. Thank you, Gus Dahu

Hi @gusdahu ,

 

kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Jorgast
Resolver II
Resolver II

Are referring to having a measure that counts the order and description or each individual word within the PO/Description?

 

Count PO = Calculate (Count(Purchase Order)

Count PO Description = Calculate (Count(PO Description)

Hi @Jorgast ,

 

I am looking for a formulae that counts each individual word. For instance, I would like to know the number of times the word repair or weld comes up in my descriptions.

 

Regards,

Gus Dahu

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.