Forum Discussion

Delphia's avatar
Delphia
Advocate II
5 years ago
Solved

Clustered column chart date limits (dynamic)

Hello everyone,

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

 

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!

  • 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
     

2 Replies

  • selimovd's avatar
    selimovd
    Most Valuable Professional

    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
     
    • Delphia's avatar
      Delphia
      Advocate II

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