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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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