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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Delphia
Advocate II
Advocate II

Clustered column chart date limits (dynamic)

Hello everyone,

I need your help with a Clustered column and line chart.

bikes.jpg

 

The goal is to show the chart with the x-axis, where the last date = the date, where "sold" and/or "cost" data is available.

In this case, there should be 3 values: July, August, September. 

The limits of x-axis should be changed dynamically, depending on the applied filters.

 

I use calenderauto() for my date table.

 

Thank you for your ideas!

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Delphia ,

 

the axis will disappear when there is not data to show. So I would recommend to check in the [Profit %] measure if there is data in the other two measures:

Profit % =
IF([Sold] = BLANK() && [Cost] = BLANK(), BLANK(), [the current Profit % code] ) 

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
selimovd
Super User
Super User

Hey @Delphia ,

 

the axis will disappear when there is not data to show. So I would recommend to check in the [Profit %] measure if there is data in the other two measures:

Profit % =
IF([Sold] = BLANK() && [Cost] = BLANK(), BLANK(), [the current Profit % code] ) 

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Thank you, Denis, for this solution! It works perfectly!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.