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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Aditi_R
Frequent Visitor

Find the count of a measure

Hello everyone,

 

I need to calculate the count of the distinct remarks: "Above Expected", "As Expected" and "Below Expected" seen in the remarks column. But the remarks column is a Measure and hence the straightforward COUNT formula doesn't work.

image.pngAn outcome something of the sort:

Aditi_R_0-1690454233527.png is expected.

Or maybe a pie chart showing the distribution.

 

Any suggestions appreciated!

Thank You!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Aditi_R ,

 

Create a table with the Remarks values (inthis case I called it RemarkSelection) then try to adde following measure:

 

Values =
COUNTROWS (
    FILTER (
        ADDCOLUMNS ( DISTINCT ( Table[StudentID] ), "Remark", [remark_select] ),
        [Remark] in Values ( RemarkSelection[Remark] )
    )
)

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Aditi_R ,

 

Create a table with the Remarks values (inthis case I called it RemarkSelection) then try to adde following measure:

 

Values =
COUNTROWS (
    FILTER (
        ADDCOLUMNS ( DISTINCT ( Table[StudentID] ), "Remark", [remark_select] ),
        [Remark] in Values ( RemarkSelection[Remark] )
    )
)

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks a lot. It is working great!

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors