Forum Discussion

Andregewehr's avatar
Andregewehr
Helper I
4 years ago
Solved

Count a Measure in a ABC Classification

Hi people!

 

I have the following table with 10 products for 2 stores and I have a [ABC] measure (I filter by date, store, product):

STOREPRODUCT[ABC]
Store 11A
Store 22B
Store 13A
Store 24A
Store 15C
Store 16A
Store 27A
Store 18C
Store 29C
Store 110B

 

How can I count by store by the measure? The expected result:

STOREABC
Store 1312
Store 2211

 

I think the way is to create a CALCULATETABLE, but I didn't get the results yet...

  • Hi, Andregewehr ;

    Create measure as follow:

    A = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="A")
    B = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="B")
    C = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="C")

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • Hi,

    Share the link from where i can download your PBI file.  Also, elaborate on the criteria for classifying products in A,B and C categories.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, Andregewehr ;

    Create measure as follow:

    A = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="A")
    B = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="B")
    C = CALCULATE(COUNT('Table'[[ABC]]]),'Table'[[ABC]]]="C")

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.