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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
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.