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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
HopelessPBIuser
Frequent Visitor

How to stop the second y - axis from dropping and showing 0 if there is no data?

Hi,

I have a Line and Stacked bar chart. The user can select several years for specific cities, the line follows the years from column to column. However there is currently not data for all years for all cities, so in the case that there is not data, the line drops down to 0 from the previous year value. 

I would like to stop it from dropping down to 0 in case there is no data and stop at the previous year value. 

HopelessPBIuser_0-1736190535042.png

Any way to achieve this? 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Change your measure to properly return BLANK() if there is no data.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Change your measure to properly return BLANK() if there is no data.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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