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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AIDA_User
Frequent Visitor

HELP...LOOSING MY MIND! Distinct Count in the Column Value in Matric Table?

Essentially we want to know how many stores have X amount of SKUs (see SKU range below).  We want it to be able to do a distinct count on the [unique retailer code], giving us # of stores and then a summary/ distinct count against the [sku name].

 

Trying to determine # stores stocking 1 sku, 2 sku, 3 skus, 4 skus, 5 skus, 6 skus, 7sku and 8 or more+ skus. (see example blelow)

 

The fields we have to play with are: [Distributor name] [store name] [rep name] [unique retailer code] [supplier name] [sku name] [store type]  

 

Below is the format requested. Have tried a summary table and a few other options, any ideas?

 

AIDA_User_1-1670901657567.png

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AIDA_User , You need measure or you need to bucket th meausre

 

Items = Distinct(Table[SKU])

 

Retailer count 7= countx(filter(Values(Table[retailer]) , [Items] =7), [retailer])

 

Retailer count 8 to 100= countx(filter(Values(Table[retailer]) , [Items] > 7), [retailer])

 

 

Or do the bucketing on distinct items

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @AIDA_User 

Thanks for reaching out to us.

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@AIDA_User , You need measure or you need to bucket th meausre

 

Items = Distinct(Table[SKU])

 

Retailer count 7= countx(filter(Values(Table[retailer]) , [Items] =7), [retailer])

 

Retailer count 8 to 100= countx(filter(Values(Table[retailer]) , [Items] > 7), [retailer])

 

 

Or do the bucketing on distinct items

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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