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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
rahulvyas
Frequent Visitor

How to count number of rows on a measure which gives true or false value?

I have created true or false measures out of a 2 different measure 

 

For example: Cash holding if(measure1>measure2, 0,1). 

 

I am trying to count how many numbers of 1 we got as a card visual but nothing seems to be working. Does anyone have any other way? When I select the Card visual it does not give the proper count. 

 

rahulvyas_0-1650648690188.png

 

1 ACCEPTED SOLUTION

@rahulvyas 

I thought you said true/false output. No issues. Try

you my try

SUMX ( 

VALUES ( Table[PostDate] ),

[Cash_Holding_Over_Under]

)

View solution in original post

3 REPLIES 3
tamerj1
Community Champion
Community Champion

Hi @rahulvyas 

you my try

SUMX ( 

VALUES ( Table[PostDate] ),

CALCULATE (

IF (

[Cash_Holding_Over_Under] = TRUE (), 

1

)

)

)

Does not work. Getting the error. I also check the format and its a "Whole Number"

rahulvyas_0-1650649721101.png

 

 

@rahulvyas 

I thought you said true/false output. No issues. Try

you my try

SUMX ( 

VALUES ( Table[PostDate] ),

[Cash_Holding_Over_Under]

)

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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