Forum Discussion
visualisation
- Anonymous2 years ago
Hi Mart1980 ,
I suggest you to transform your tables by UNPIVOT function in Power Query Editor.
Your table will look like as below.
Then create a DimDate to relate two tables.
Result is as below.
Uplift Table:
Uplift = SUMMARIZE ( ALL ( Achieved ), Achieved[Website], Achieved[Date], "Uplift", CALCULATE ( SUM ( Forecast[Value] ), FILTER ( Forecast, Forecast[Website] = EARLIER ( [Website] ) && Forecast[Date] = EARLIER ( [Date] ) ) ) - CALCULATE ( SUM ( Achieved[Value] ) ) )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Here is the link. https://docs.google.com/spreadsheets/d/1p9ztpr6kNlLW6mxGMSPn7zGq8WBdtphP/edit?usp=sharing&ouid=109363900115412190112&rtpof=true&sd=true
all data that i need is on one page 😄
best,
Marta
Hi Mart1980 ,
I suggest you to transform your tables by UNPIVOT function in Power Query Editor.
Your table will look like as below.
Then create a DimDate to relate two tables.
Result is as below.
Uplift Table:
Uplift =
SUMMARIZE (
ALL ( Achieved ),
Achieved[Website],
Achieved[Date],
"Uplift",
CALCULATE (
SUM ( Forecast[Value] ),
FILTER (
Forecast,
Forecast[Website] = EARLIER ( [Website] )
&& Forecast[Date] = EARLIER ( [Date] )
)
)
- CALCULATE ( SUM ( Achieved[Value] ) )
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.