Forum Discussion
undefined
- Anonymous1 year ago
Hi loginarun ,
Below is my test data.
Create a measure showing sales on the same day of the previous week.Sales previous week = CALCULATE( SUM(sales[total_amount]), 'sales'[order_datetime]=MAX('sales'[order_datetime])-7, ALLEXCEPT('sales',sales[order_datetime]) )
Then create a measure showing the percentage change in sales.Percentage change per week = DIVIDE(SUM(sales[total_amount])-[Sales previous week],[Sales previous week])
Place the measures and table fields into the table visual as shown below.
Please see the pbix for reference.
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi loginarun ,
Below is my test data.
Create a measure showing sales on the same day of the previous week.
Sales previous week =
CALCULATE(
SUM(sales[total_amount]),
'sales'[order_datetime]=MAX('sales'[order_datetime])-7,
ALLEXCEPT('sales',sales[order_datetime])
)
Then create a measure showing the percentage change in sales.
Percentage change per week =
DIVIDE(SUM(sales[total_amount])-[Sales previous week],[Sales previous week])
Place the measures and table fields into the table visual as shown below.
Please see the pbix for reference.
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- loginarun1 year agoFrequent Visitor
Need same day of previous Month Example if 4-Apr-2022 is monday the previous month of first monday like 3-Mar-2022 it will show
below the line chart