Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
kolov007
Contributor III
Contributor III

Assortment matrix

Hello.

I have a problem. I need to count the number of unique items in each store, thus it is necessary to consider only those products whose number is greater than 0 (>0). The document, which is attached as an attachment, at the level of display products level everything works right, but to collapse the network level, the data is displayed incorrectly.

Help me please to solve this problem.

Screenshot_1.jpgScreenshot_2.jpg

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum(Aggr(If(Sum(Amount) > 0, Count(DISTINCT Product)), Product, Shop))

View solution in original post

3 Replies
sunny_talwar

Try this:

Sum(Aggr(If(Sum(Amount) > 0, Count(DISTINCT Product)), Product, Shop))

Anil_Babu_Samineni

May be use this

Sum(If(Sum(Amount) > 0, Aggr(Count(DISTINCT Product)), Product, Shop))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kolov007
Contributor III
Contributor III
Author

Thank you