Forum Discussion
Displaying items without data does not take into account the date filter
Hello,
I have a chart that displays my resource workload (columns) on the Y axis and resource capacity (line) on the X axis.
On the X axis, I have the date from a calendar table linked to the “workload” table and “capacity” table.
I have a slicer that allows me to select the dates I want to display.
Everything works fine.
The problem I have is that for some resources, I don't have any records in workload, but I still have capacity. In this case, the chart doesn't display anything. I think is because powerbi do an "inner join" between resource table and workload table , and between resource table and capacity table. So if there is no data in workload, the resource is'nt displayed.
If I select “Show items without data” for the date on the X-axis, my capacity line is visible, but the date filter no longer has any effect. This also displays dates outside the selection range, but I do have the capacity displayed in relation to the date filter.
I have attached a screenshot of my display.
Do you know how I can solve my problem?
Thank you in advance for your help.
Hii JCASteel31
Power BI hides categories when measures return BLANK(). Instead of using “Show items without data”, use a proper star schema and measures that return 0 (via COALESCE) while driving the axis from the Calendar table. This keeps capacity visible, respects the date slicer, and avoids disconnected axis behavior.
Hi JCASteel31,
This is a classic Power BI behavior!
Here is what is happening:
The Problem: By default, visuals hide axis points (dates) where the measure returns BLANK. If your "Workload" is blank, the visual tries to collapse those dates.
The Trap: When you enable "Show items without data", you tell Power BI: "Show me ALL dates in the Calendar table, regardless of the current filter context." That is why your date slicer stops working and you see dates from 1900 to 2099.
Here is the best way to fix this while keeping your Date Slicer working:
The Solution: The "+ 0" Trick
Do not use "Show items without data." Instead, force your Workload measure to return a Zero instead of a Blank when there is no data. This forces the visual to render the date (because 0 is a value) without breaking the filter context.
Step 1: Create a new measure (or update your existing one)
Workload Display = VAR CurrentWorkload = SUM('Workload'[YourColumn]) -- Or your existing measure RETURN IF( ISBLANK(CurrentWorkload), 0, CurrentWorkload )Simple version: Workload Display = [Workload Measure] + 0
Step 2: Update the Visual
Select your chart.
Uncheck "Show items without data" on the X-axis (Date).
Replace your original Workload field with this new [Workload Display] measure.
Result:
The chart will show a "0" bar for dates with no workload.
Because the bar exists (value 0), the Capacity Line will now appear on top of it.
Because you turned off "Show items without data", the Date Slicer will work perfectly again.
Bonus Check (Data Model): Ensure your "Resource" slicer is coming from a separate Resource Dimension table (e.g., DimResources) that filters both the Workload and Capacity tables. If you filter by a column inside the Workload table, it might inadvertently hide rows in the Capacity table.
Hope this helps you visualize your capacity!
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
This response was assisted by AI for translation and formatting purposes.
5 Replies
- rohit1991
Super User
Hii JCASteel31
Power BI hides categories when measures return BLANK(). Instead of using “Show items without data”, use a proper star schema and measures that return 0 (via COALESCE) while driving the axis from the Calendar table. This keeps capacity visible, respects the date slicer, and avoids disconnected axis behavior.
- burakkaragoz
Super User
Hi JCASteel31,
This is a classic Power BI behavior!
Here is what is happening:
The Problem: By default, visuals hide axis points (dates) where the measure returns BLANK. If your "Workload" is blank, the visual tries to collapse those dates.
The Trap: When you enable "Show items without data", you tell Power BI: "Show me ALL dates in the Calendar table, regardless of the current filter context." That is why your date slicer stops working and you see dates from 1900 to 2099.
Here is the best way to fix this while keeping your Date Slicer working:
The Solution: The "+ 0" Trick
Do not use "Show items without data." Instead, force your Workload measure to return a Zero instead of a Blank when there is no data. This forces the visual to render the date (because 0 is a value) without breaking the filter context.
Step 1: Create a new measure (or update your existing one)
Workload Display = VAR CurrentWorkload = SUM('Workload'[YourColumn]) -- Or your existing measure RETURN IF( ISBLANK(CurrentWorkload), 0, CurrentWorkload )Simple version: Workload Display = [Workload Measure] + 0
Step 2: Update the Visual
Select your chart.
Uncheck "Show items without data" on the X-axis (Date).
Replace your original Workload field with this new [Workload Display] measure.
Result:
The chart will show a "0" bar for dates with no workload.
Because the bar exists (value 0), the Capacity Line will now appear on top of it.
Because you turned off "Show items without data", the Date Slicer will work perfectly again.
Bonus Check (Data Model): Ensure your "Resource" slicer is coming from a separate Resource Dimension table (e.g., DimResources) that filters both the Workload and Capacity tables. If you filter by a column inside the Workload table, it might inadvertently hide rows in the Capacity table.
Hope this helps you visualize your capacity!
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
This response was assisted by AI for translation and formatting purposes. - cengizhanarslan
Super User
This happens because “Show items without data” ignores the visual-level date filter context and forces Power BI to enumerate all dates from the calendar, which is why your slicer range is no longer respected.
The correct pattern here is not to rely on “Show items without data” for dates.
Instead:
Make Resource a proper dimension table (distinct list of resources).
Relate Resource → Workload and Resource → Capacity (1:*).
Keep Calendar → Capacity and Calendar → Workload relationships active.
Do not turn on “Show items without data” for the date axis.
Then fix the “missing workload” case in DAX, not in the visual.
Example for workload:
Workload = COALESCE ( SUM ( Workload[Hours] ), 0 )Capacity will still return values even if workload is zero, and the resource will stay visible because it comes from the Resource dimension, not from the fact table.
- JCASteel31New Member
Thank you for your answer, it works. I've follow your instruction but I had to deselect the axe X and reselect my date in the field to manage to display what I wanted. Thanks to both of you for your quick response
- JCASteel31New Member
Thank you all of you for your quick answer. Just After follow your instructions, I had to deselected the date choosen in axe X and reselect the date. 😉