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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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