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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.