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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Power BI measure not matching data view

So I have a BI Measure that shows the percentage.

This is the measure:

 

Cost blank =
VAR __AmountBlank = CALCULATE(COUNT(X[Cost]), X[COST] = BLANK())
VAR __Total = COUNT(X[Cost])
RETURN
DIVIDE(__AmountBlank, __Total, -1)

 

The variable __AmountBlank returns the value 382 965.
When I go to the data view, and filter Cost on blank it returns 2 753 records.

 

I also tried ISBLANK(X[COST]) and X[COST] = "" (this returns an error) but nothing works.. 

How do I resolve this issue?

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @Anonymous 
Please the below formula for count of blank rows. Take measure

Count =
Var A= COUNTROWS('Table')
var C= COUNTBLANK('Table'[Doc])
Return Divide(C,A,-1)
 
 
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

4 REPLIES 4
Uzi2019
Super User
Super User

Hi @Anonymous 
Please the below formula for count of blank rows. Take measure

Count =
Var A= COUNTROWS('Table')
var C= COUNTBLANK('Table'[Doc])
Return Divide(C,A,-1)
 
 
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Anonymous
Not applicable

This worked! Thanks a lot! 

 

Idrissshatila
Super User
Super User

HEllo @Anonymous ,

 

try

VAR __AmountBlank = CALCULATE(COUNTROWS('TableName'), X[COST] = BLANK())


Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

Interesting, did not try this yet! Unfortunately it does give the same result as the previous one..

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors