cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RNightscape Frequent Visitor
Frequent Visitor

Count a Measure

Hi all.

Please, anyone could help?

On my matrix I have some results (green, red) created by a measure.

I would like to count the number of "green" for each depart.

 

 

POWERBI.jpg

 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Count a Measure

Sample data would help. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, you could do something like:

 

Measure = COUNTROWS(FILTER(SUMMARIZE('Table',[Product],[Category],"__Measure",[Measure]),[__Measure]="GREEN"))

I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

2 REPLIES 2
Super User
Super User

Re: Count a Measure

Sample data would help. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, you could do something like:

 

Measure = COUNTROWS(FILTER(SUMMARIZE('Table',[Product],[Category],"__Measure",[Measure]),[__Measure]="GREEN"))

I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

Highlighted
RNightscape Frequent Visitor
Frequent Visitor

Re: Count a Measure

Thank you very much by your help!

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 121 members 1,508 guests
Please welcome our newest community members: