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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.