Forum Discussion

u1106741's avatar
u1106741
Regular Visitor
4 years ago
Solved

.

  • u1106741 , if you select a month and want to disply trend for more than that you need use independent table

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

     

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

2 Replies

  • u1106741 , if you select a month and want to disply trend for more than that you need use independent table

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

     

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

  • v-xiaotang's avatar
    v-xiaotang
    Community Support

    Hi u1106741 

    I just want to confirm have you tried the solution shared by amitchandak? Does it help? 

    If you still need help, usually information below is needed, could you provide it? Thanks.

     (1) a sample file, you can replace raw data with bogus data to protect your privacy.

         or provide some sample data that fully covers your issue/question.

    (2) give your expected result based on the sample you provide. If calculation formula is involved, please provide it.

    Kindly note: Please ensure the data in sample is concise and representative.

    Thanks.

     

    Best Regards,

    Community Support Team _Tang

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