Forum Discussion

IntaBruce's avatar
IntaBruce
Icon for Resolver I rankResolver I
4 years ago
Solved

Gaps in the line on composite chart

Hi, I have a composite column and line chart which has patchy data somethimes, and when it does the lines don't join up, they just have gaps.  When the values are zero I want the lines to go to zero...
  • amitchandak's avatar
    4 years ago

    IntaBruce , That is because the values are blank, In case 0 it will show them on the axis.

     

    You can add +0 to the measure. But it can show all month year, so control like

     

     

    0 between range
    Measure = var _1= SUM(Opportunity[Opportunity count]) +0
    var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
    var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
    return
    CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))