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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Martijnkamps
Regular Visitor

Filtered count

Hi everyone,

 

I am new to Power BI and look to solve the following problem:

 

I have a table of strings that looks something like this:

 

Column 1              Column 2
A                           Yes
A                           Yes
A                           No
B                           Maybe
B                           Maybe
C                          Technical
D                          Technical
D                          Contract

I want to count (sum) all variables in column 2 for each variable in column 1.

Preffered output looks like:

 

Column 1             Column 2              Column 3

A                          Yes                        2

A                          No                         1

B                          Maybe                   2

C                         Technical                1
D                         Technical                1

D                         Contract                 1

 

Does anyone know how to solve this? Thank you very much in advance!

 

With kind regards,
Martijn Kamps

1 ACCEPTED SOLUTION

Dear Dale,

Yes, thank you for your solution! The main problem was with a related table and the data type. It is fixed now.

Thank you and with kind regards,
Martijn

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

@Martijnkamps

 

Hi Martijn Kamps,

 

Actually there are two ways we can go.

Option 1: Use a measure.

Measure =
COUNT ( Table1[Column2] )

Option 2: Add column2 twice, then choose count.Filtered count02.jpg

 

 

 

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

@Martijnkamps

 

Hi,

 

Could you tell me if this worked? What else can I do for you?

 

 

Best Regards!

Dale

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

Dear Dale,

Yes, thank you for your solution! The main problem was with a related table and the data type. It is fixed now.

Thank you and with kind regards,
Martijn

Hi Martijn,

 

My pleasure! I am so glad you have solved the problem.

 

 

Best Regards!

Dale

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.