Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

undefined

Condition is If I am selecting any of the month in slicer like If I will select "September" in slicer then into the visual value has to show for Next Three months like "Oct, Nov and Dec", please help...
  • amitchandak's avatar
    3 years ago

    Anonymous , In case you select one month and want display(On axis) three months you need slicer on and an independent table

     

    //Date1 is independent Date table, Date is joined with Table
    new measure =
    var _min= Minx(allselected(Date1),Date1[Date])
    var _max= eomonth(_min,3)
    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