Forum Discussion

Green_Cloud's avatar
Green_Cloud
Icon for Helper I rankHelper I
4 years ago
Solved

Weekly Running Total and Transformation Rate based on Two Measures

From the data source below, how can I build a report given that- Ad count=COUNT (adddate) Sales count= COUNT(salesdate)   Report and Data Source are below- REPORT:   DATA SOURCE: ...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, Green_Cloud ;

    Change it.

    countstart = CALCULATE(COUNT('Table'[unique id]),FILTER('Table',[addate]<=MAX('Date'[weekend])))
    countend = CALCULATE(COUNT('Table'[unique id]),FILTER('Table',[saledate]<=MAX('Date'[weekend])))
    rate = [countend]/[countstart]

    The final output is shown below:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.