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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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