Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Static Trend Line for Column Chart

Hello Community -    I have a basic measure that is calculating the weekly average based on a the selected date ranges. Measure is:   Wkly Avg = DIVIDE(Total POs, ISO Wk Count, 0 )   Total PO...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    5 years ago

    Hi Anonymous ,

     

    Is the gif similar to your expected output?

     

    You can create a new date table from your fact table:

     

    Date = values(fact[date])

     

    Then use the new date column as slicer for you to select date range you want. And then you can use the following measure as average lines

     

    Wkly Avg = CALCULATE(DIVIDE(Total POs, ISO Wk Count, 0 ),TREATAS(VALUES('Date'[date]),'fact'[date]))
    
    

     

    You can refer to the sample pbix file.

     

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

     

    Best Regards,

    Dedmon Dai