cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## Count occurencies

Hello everyone,  I have thw following information:

And a want to get the next grid:

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?

1 ACCEPTED SOLUTION
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] )
)```

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

5 REPLIES 5
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] )
)```

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

Frequent Visitor

@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.

Microsoft Employee

@brissae

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

New Member

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!

Frequent Visitor

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

You are brilliant!!!

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors