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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Sumif function in Power BI

Hi Folks,

 

I have a table where I want to count number of specific text in a column. How can I do that?

My coloumn name is Observation

Values there are "SU", "SW", SO.

 

So how can I apply count if?

4 REPLIES 4
dax
Community Support
Community Support

Hi bhuvanasundar,

I can't reproduce your problem based on your desription, so if possible, could you please inform me in details(such as your sample data, your expected output or the error you get currently)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Asac_14
Resolver I
Resolver I

Create a Calculated column as Count=1

 

Create a measure for each of the group like:

 

Count of SU = calculate(sum(Count),Observation="SU")

Count of SW = calculate(sum(Count),Observation="SW")

Count of SO = calculate(sum(Count),Observation="SO")

 

@Anonymous  if it helps please give a Kudos:)

Anonymous
Not applicable

Doesnt work actually

What error you are getting ? @Anonymous 


@Anonymous wrote:

Doesnt work actually


 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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