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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alvin199
Helper III
Helper III

Data source with missing value presentation

Hi,

I would like to know how should I present the visual with missing value.

 

I have 1 bar chart (show Number of Student in Class) and a card (show Total Number of Student Registered in the school).


However, there are missing values for the Class column. Thus, if I remove the missing value of the Class cloumn in the Transform Data page or exclude it in the Filter panel of Report view then it will display the Total Student in the Card and Total in the bar chart (adding the total of each bar) with different value.

 

What is the correct presentation without mislead the users?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @alvin199 ,

 

Create a measure named like "count of students have class".

count of students have class = CALCULATE(COUNT('Table'[student]),FILTER('Table','Table'[class]<>BLANK()))

1.PNG

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @alvin199 ,

 

Create a measure named like "count of students have class".

count of students have class = CALCULATE(COUNT('Table'[student]),FILTER('Table','Table'[class]<>BLANK()))

1.PNG

 

Best Regards,

Jay

alvin199
Helper III
Helper III

@amitchandak 

 

Hi, here is the sample pbix file

https://drive.google.com/file/d/1omVSGJNxGTa_Y8L0OdaXi2rWr8EfROaX/view?usp=sharing

 

There is a missing value in Class cloumn. I have replace the Null to 0 in Transforme Data page.

alvin199_0-1643946159698.png

 

If I include the class 0 (which suppose does not have class 0) then the Total number will be fine but visual is not make sense. Include.PNG

 

If I exclude the class 0 in the bar chart, the Total Number for both Card and Bar chart are differnet. 

Exclude.PNG

 

 

The data owner does not know what is the appropriate class for the misisng value due to some reason thus I put class 0 for the Null value as a flag. 

amitchandak
Super User
Super User

@alvin199 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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