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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DaleK
Frequent Visitor

Create a new table with distinct values

Hi

 

I am trying to create a new distinct table.

My source data has the following fields:

Store ID, Department, Month, Total Sales

I need understand how I can create a table which will display the Departments as a distinct list with the number of stores per Department.

Department EG: Retail, 4 Stores

 

This table needs to be dynamic and only show active stores in the data source.

 

Thanks

 

Dale

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DaleK , Based on What I got

 

Summarize(Table, Table[Department], "Stores", count(Table[Store ID]))

 

refer

Summarize - https://www.youtube.com/watch?v=qE5KBp4uP0g

 

 

Or use Group by in Power Query

https://docs.microsoft.com/en-us/power-query/group-by

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@DaleK , Based on What I got

 

Summarize(Table, Table[Department], "Stores", count(Table[Store ID]))

 

refer

Summarize - https://www.youtube.com/watch?v=qE5KBp4uP0g

 

 

Or use Group by in Power Query

https://docs.microsoft.com/en-us/power-query/group-by

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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