Forum Discussion

NFI27's avatar
NFI27
Helper I
7 years ago

Count Items

Hello,

 

This is question is something that i have done similar in excel the problem is i dont know if it could be done in bi. But better.

 

I want to create like an index catalogue to know how many items i manage per product line but it goes a bit deeper.

 

Example  Table:

 

Item Product LineCategorysubcategory Division
adsportwater sportdivingsnorkle
afsportwater sportsurfingwax
agsportwater sportsurfingsurfboard
ahsportland sportfootballball
ajsportland sportbasketballjersey
akschool & officeschoolpaintacrylic
alschool & officeofficeadhesivesglue 
zxschool & officeschoolpaintoil
zcschool & officeschoolwriting instrumentpencil
zvschool & officeofficeadhesivesscotch tape

 

 

This is the table. Now using a slicer i want to be able to count :

 

SLICER: 

Product Line
Sport
school&Office

 

(FOR EXAMPLE IF I CLICK ON SPORTS IT SHOULD SHOW ME)

CatergoryCount item
water sport3
land sport2

 

( IF I CLICK ON WATER SPORTS ITEMS IT SHOULD SHOW ME)

 

Subvategory Count item
Diving1
Surfing2

 

( IF I CLICK ON THE SURFING ITEMS IT SHOULD SHOW ME)

 

DivisionCount Item
Wax1
Surfboard1

 

and this would be the end.

 

Sorry, if this an impossible task just wondering if it could be done.

 

 

Thanks in advance

6 Replies

  • Hi,

     

    I suggest that you create a Matrix visual and drag the last four fields to the row labels.  Write this measure

     

    =COUNTA(Data[Item])

    • NFI27's avatar
      NFI27
      Helper I

      Hello,

       

      It works partly.

       

      as in it counts the items but does not get past the prouct line, so the table ends up being like this:

      Product Linecount
      Sport 5
      School & office5

       

      Cant filter through it

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

         

        There are filter controls at the bottom right hand side of the visual - see image below