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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
KKVerma
Regular Visitor

Show Items with no Data not working

Hi Team, I have an important query:

I have below dataset and i also have a date dimension table which has data up till year 2040, which is connect to this fact table. I have calculated Total Sales using the below dax:

Total Sales = CALCULATE(SUM(FctTest[Amount]),KEEPFILTERS(FctTest[Type]="Sales"))

 

KKVerma_0-1723045659326.png

I am trying to plot this in the line chart below. I have checked the mark where it says "Show Items with no data". However, on the x axis, it is still showing those 4 years. ideally it should show all the years presented in the date dimension table.  

 

KKVerma_1-1723045913375.png

 

Could you please help me understand, what is it that i am missing?

#powerBI @dax 

 

 

 

 

1 ACCEPTED SOLUTION
TrevLc
Helper III
Helper III

I am pretty sure it is because your field "year" is data type "whole number".

Change it to text, and then choose "show items with no data".

I just tested this, and it worked for me

View solution in original post

3 REPLIES 3
KKVerma
Regular Visitor

It seems like the issue is with this chart type only. Bcose stacked column chart displays all the years without converting the years to categorical type in the visual. Thank you 

TrevLc
Helper III
Helper III

I am pretty sure it is because your field "year" is data type "whole number".

Change it to text, and then choose "show items with no data".

I just tested this, and it worked for me

SachinNandanwar
Solution Supplier
Solution Supplier

Hi, Convert the chart to a table and check if it displays the expected data.



Regards,
Sachin
Check out my Blog

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.