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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
brissae
Frequent Visitor

Count occurencies

Hello everyone,  I have thw following information:

 

Cap.PNG

 

 

And a want to get the next grid:

 

Capture.PNG

 

The idea is to show the count of people who resolved more than 10 problems related to the product name and also the average of problems per month during the year that these people resolved.

 

I was trying to do it with filters and count but I don't know how to start.

Do you have an idea?

 

Thanks in advance.

 

 

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@brissae

 

You need two calculated tables.

 

 

Aggregate Table =
SUMMARIZE (
    'YourTable',
    YourTable[Product name],
    YourTable[OWNER],
    "is cnt >=10", IF ( COUNTA ( 'YourTable'[OWNER] ) >= 10, 1, 0 ),
    "is cnt<10", IF ( COUNTA ( 'YourTable'[OWNER] ) >= 10, 0, 1 )
)

 

grid =
SUMMARIZE (
    'Aggregate Table',
    'Aggregate Table'[Product name],
    "People>=10", SUM ( 'Aggregate Table'[is cnt >=10] ),
    "People<10", SUM ( 'Aggregate Table'[is cnt<10] )
)

Capture.PNG

 

Regarding average, I don't see any date column in your table.

 

View solution in original post

5 REPLIES 5
Eric_Zhang
Microsoft Employee
Microsoft Employee

@brissae

 

You need two calculated tables.

 

 

Aggregate Table =
SUMMARIZE (
    'YourTable',
    YourTable[Product name],
    YourTable[OWNER],
    "is cnt >=10", IF ( COUNTA ( 'YourTable'[OWNER] ) >= 10, 1, 0 ),
    "is cnt<10", IF ( COUNTA ( 'YourTable'[OWNER] ) >= 10, 0, 1 )
)

 

grid =
SUMMARIZE (
    'Aggregate Table',
    'Aggregate Table'[Product name],
    "People>=10", SUM ( 'Aggregate Table'[is cnt >=10] ),
    "People<10", SUM ( 'Aggregate Table'[is cnt<10] )
)

Capture.PNG

 

Regarding average, I don't see any date column in your table.

 

@Eric_Zhang Hello again, how can I do to show this results by month and year? As filters. 

I made it work, but everytime I select more than 1 month, the numbers go incorrect. I don't have a date table, I only have the dates associated with every row . I tried to use this but it didn't work, I don't kno how to use this time intelligence funct.

 

Hope you have an advice, thank you.

@brissae

 

Could you please post more completed sample data along with expected output?

Hi @Eric_Zhang,

 

Could you have a look at my question here:

http://community.powerbi.com/t5/Desktop/How-to-create-a-histogram-that-show-occurrences-of-client-na...

I have a similar issue and can't use this solution as mine involve date slicer.

 

Thanks!

Thank you @Eric_Zhang  Your answer helped a lot, I could finish my report, it was more complex that I thought.

You are brilliant!!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.