- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Stuck trying to figure out how to count the number of items per column. Seems so simple.
My report needs to count the number of items in each category in a column.
Here is an example of my data. I need to count the number of times an item shows up under Source. I tried count, but it goves me the total, I tried count disctinct but nothing seems to give me the accurate number.
What do I need to do to count the number of times Google shows up as a source, the number of times Bing shows up, etc?
Thank you
Date | Name | Source |
3.1.23 | Joe | |
3.5.23 | Mary | Bing |
3.7.23 | Tom | Yahoo |
3.1.23 | Joe | |
3.5.23 | Mary | Bing |
3.7.23 | Tom | Yahoo |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Confusedpbi ,
Here are the steps you can follow:
1. Create measure.
Measure =
COUNTX(
FILTER(ALL('Table'),
YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&
MONTH('Table'[Date])=MONTH(MAX('Table'[Date]))&&
'Table'[Name]=MAX('Table'[Name])&&'Table'[Source]=MAX('Table'[Source])),
[Source])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Confusedpbi ,
Here are the steps you can follow:
1. Create measure.
Measure =
COUNTX(
FILTER(ALL('Table'),
YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&
MONTH('Table'[Date])=MONTH(MAX('Table'[Date]))&&
'Table'[Name]=MAX('Table'[Name])&&'Table'[Source]=MAX('Table'[Source])),
[Source])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Confusedpbi , Create a visual with Source as Not Sumamrized field/Axis/Row and use a measure below with that
Count = countrows(Table)
what is the expected output you are not getting
or do you need dynamic segmentation
Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@amitchandak I am trying to see how many leads from each lead source my salesperson received.
As an example: In March, each salesperson received 20 leads from Google, 10 leads from Bing and 15 leads from Yahoo.
I want Power BI to show me how many leads each person received from each lead source each month.
Thank you

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
02-22-2024 03:03 AM | |||
05-29-2024 12:58 PM | |||
11-07-2023 10:12 PM | |||
03-05-2024 08:26 PM | |||
06-25-2024 05:40 AM |
User | Count |
---|---|
86 | |
81 | |
53 | |
37 | |
37 |