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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Counting Unique Values

Hi,

I have a column with a project number and project part name. I would like to return another column with only the unique project parts and the number. The filters on the page/column must remain active.

I did get something through this formula based on a filter on the name, but I want the formula to look for all unique lines, without entering a "hard" text.

CALCULATE(COUNTROWS(d_projectpart), FILTER(d_projectpart, d_projectpart[Projectpart]="IWAS II"))

The table should look something like this after the formula.

ProjectnumberProject part nameTotal
10011001Station 13
20022002Station 25
30033003Station 36
40044004Station 41

It should also be possible to add other columns with sum values

 

Thanks in advance for the help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

I have found the solution via filters. So there was no formula necessary.

Thanks for the help!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

I have found the solution via filters. So there was no formula necessary.

Thanks for the help!

Icey
Community Support
Community Support

Hi @Anonymous ,

 


The table should look something like this after the formula.

Projectnumber Project part name Total
10011001 Station 1 3
20022002 Station 2 5
30033003 Station 3 6
40044004 Station 4 1

 


How about the original table before the formula? I need to compare the original table with the result table.

 

 

Best Regards,

Icey

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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