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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Andregewehr
Helper I
Helper I

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...

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1659059868036.png


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.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1659059868036.png


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.

Ashish_Mathur
Super User
Super User

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Andregewehr
Helper I
Helper I

Here are the pictures, the table misconfigured

1.JPG

Expected results:

2.JPG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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