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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
LeahGJ
Frequent Visitor

Creating a custom column based on a distinct count

Hi.  

 

I have a hugggeee set of data with duplicated Purchase order transaction. I want to create a new column in the data set to count number of purchase order numbers. 

 

Thanks 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LeahGJ ,

 

You could use Dax formula:

 

Column = DISTINCTCOUNT('Table'[Column1])

 

 

Best Regards,

Jay

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @LeahGJ ,

 

You could use Dax formula:

 

Column = DISTINCTCOUNT('Table'[Column1])

 

 

Best Regards,

Jay

 

TomMartens
Super User
Super User

Hey @LeahGJ ,

 

please take the time to create a pbix file that contains sample data but still reflects your data model, upload the pbix file to onedrive or dropbox and share the link. If you are using Excel to create the sample data share the xlsx as well.

 

Describe the expected result based on the sample you created.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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