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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.