Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Solved! Go to Solution.
Hi @alexpegg86
Please try the following measure:
Value Same Period Last Yearr =
VAR _select_year = SELECTEDVALUE('Total Soft Drinks Output'[Year])
VAR _select_period = SELECTEDVALUE('Total Soft Drinks Output'[Period])
RETURN
CALCULATE(
SUM('Total Soft Drinks Output'[Spend]),
FILTER(ALL('Total Soft Drinks Output'),'Total Soft Drinks Output'[Period] = _select_period && 'Total Soft Drinks Output'[Year] = _select_year-1)
)
Value Same Period Last two Years =
VAR _select_year = SELECTEDVALUE('Total Soft Drinks Output'[Year])
VAR _select_period = SELECTEDVALUE('Total Soft Drinks Output'[Period])
RETURN
CALCULATE(
SUM('Total Soft Drinks Output'[Spend]),
FILTER(ALL('Total Soft Drinks Output'),'Total Soft Drinks Output'[Period] = _select_period && 'Total Soft Drinks Output'[Year] = _select_year-2)
)
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @alexpegg86
Please try the following measure:
Value Same Period Last Yearr =
VAR _select_year = SELECTEDVALUE('Total Soft Drinks Output'[Year])
VAR _select_period = SELECTEDVALUE('Total Soft Drinks Output'[Period])
RETURN
CALCULATE(
SUM('Total Soft Drinks Output'[Spend]),
FILTER(ALL('Total Soft Drinks Output'),'Total Soft Drinks Output'[Period] = _select_period && 'Total Soft Drinks Output'[Year] = _select_year-1)
)
Value Same Period Last two Years =
VAR _select_year = SELECTEDVALUE('Total Soft Drinks Output'[Year])
VAR _select_period = SELECTEDVALUE('Total Soft Drinks Output'[Period])
RETURN
CALCULATE(
SUM('Total Soft Drinks Output'[Spend]),
FILTER(ALL('Total Soft Drinks Output'),'Total Soft Drinks Output'[Period] = _select_period && 'Total Soft Drinks Output'[Year] = _select_year-2)
)
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Anonymous ! That has worked 😀
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |