Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.


display zeros in line graph

Hello everyone, I have the following case.
I need to visualize to zero the records that do not appear in the fact table, of the hours that the employee dedicates to the project.
But when I perform that measurement, it shows me all the projects that I have in the data model and does not filter me according to the employee I have selected, and I do not know how to do it to show only the projects that belong to that employee.
if you can help me, I thank you.


This is the model.


if you see in the matrix on the right, the projects in which the employee participates, there are 3.
However, to my extent, it takes out all the projects I have in the model.
The measurement I'm using to paint the data to zero is as follows.


The data is very basic.
Calendar table.


Employees table.


The FACT table, which stores the hours spent per day on the project.


and finally the projects table, which has the project data.


It is an example model, or to share the info with you.
Greetings I thank you for any help.

I don't like how to share pbix, or excel, I'm new to this. if you tell me I share it.
Thanks again.

Community Support
Community Support

Hi @Anonymous,

Did these records really exist in your tables? If they are not included in your table records, you need to use a calendar table with Dax expression to expand the records.
In addition, zero value will auto removed in the chart and other graphs visualization. If you want to display zero value records, please use table visuals instead.


Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Super User
Super User

Usually in such scenarios (when you want to show data that is not there) you need to create a cross join between your dates table and your employees table, and then use measures to calculate if there's a value at the intersection or a zero.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors