Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

New Member

Counting rows of "1" values depending on the result of a measurement


I have the following measures in a measures table:

TotalPoints = 54890
TotalPointsBlue = 16340
TotalPointsBlueLight =7450


And a "EventPoints" table
Event   Action
event1    1
event2    1
event3    0
event4    1
event5    0
event6    1
event7    0

How can I create a measures that counts the "1" values of the Action column, filtering the records that belong to "TotalPointsBlue"?
I've created this measure, but it does not work
CALCULATE(COUNTROWS(EventPoints), IF(EventPoints[Action] = 1 && [TotalPointsBlue ] > 0, 1, 0)



Plaese, can you help me?



Resolver II
Resolver II



Try this

CountActionBlue = 
    EventPoints[Action] = 1,
    EventPoints[Event] IN VALUES(EventPoints[Event]),
    [TotalPointsBlue] > 0

Hi @AjithPrasath, it doesn't work either.

Error: A placeholder function has been used in a true/false expression that is used as a table filter expression, which is not permitted.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors