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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nsessa
New Member

Creating a new table with summarizing and distinct count

Hi, 

 

I am trying to create a new table that will summarize some information I need. The new table will have 3 columns. I want to summarize a date column, and a zip column. However I want the third column to be a distinct count of 'orders' going to that zip code on that date. I understand i can do the summarize function for the first 2 columns, but I am having trouble with getting the third column in the table. 

 

Thank you

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@nsessa 

Something like this should get you the table you are looking for.

Table 2 = SUMMARIZE('Table','Table'[Date],'Table'[Zip],"Orders",DISTINCTCOUNT('Table'[Order Num]))

 You will need to change the "Order" calculation to be applicable to your model.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @nsessa ,

 

Please let us know whether @jdbuchanan71 's expression is what you want.

 

 

Best Regards,

Icey

Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
jdbuchanan71
Super User
Super User

@nsessa 

Something like this should get you the table you are looking for.

Table 2 = SUMMARIZE('Table','Table'[Date],'Table'[Zip],"Orders",DISTINCTCOUNT('Table'[Order Num]))

 You will need to change the "Order" calculation to be applicable to your model.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.