Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

TRICKY - Line and Bar Chart Plot

Hi Expert   I want to plot the following data on a line and clustered column chart.  Month Past Total Current Total PD % Year Jan-20 15.52 176.32 8.1% 2021 Feb-20 20.73 169.27 ...
  • sayaliredij's avatar
    5 years ago

    1. Instead of using Month Name like 'Jan 2020 ' or 'Feb 2020', you can use date eg. First day of the month. Instead of  Jan 2020 - 1 Jan 2020. Which gives you the possibility to use some time intelligence functions.
    2. Create a calculated table using the following formula
        Months = DISTINCT(Table[Month])
    3.  Use Slicer for the Month from this table and not from the Original table
    4.  In the original table create a measure called MonthFilter
    MonthFilter = 
    var selectedmonth = EDATE(DATEVALUE(SELECTEDVALUE(Months[Month])),12)
    RETURN
    IF(MAX(Table[Month]) <= selectedmonth,1,0)
    4. Create a line chart for your data 
    5. In Visual level filter, add MonthFilter and set as 1 

     

    Regards,

    Sayali

    If this post helps, then please consider Accept it as the solution to help others find it more quickly.