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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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