Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Help with Line Chart

Hello!

When I was trying to add a line chart that shows headcounts by month, the chart shows only the current selected month instead of showing all months. Am I missing something? 

Here's what I have right now

And here's what I need to get:

 

Thank you!

  • Anonymous , if you select one month and want more than that on axis, you need an independent table

     

    //Date1 is independent Date table, Date is joined with Table
    new measure =
    var _max = maxx(allselected(Date1),Date1[Date])
    var _min = eomonth(_max, -7) +1
    return
    calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

     

    Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

     

2 Replies