Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I'm trying to create a table to compare TTM Amounts. Let's assume that I'm comparing FY16 (12/31/2017), FY17 (12/31/2017), FY18 (12/31/2018) and TTM Apr-19 (04/30/2019), so, I created the following script.
TTM CY vs PY =
VAR TTM = [Total TTM]
VAR TTM_PY =
CALCULATE ( [Total TTM], DATEADD ( Date_Table[Period End Date], -365, DAY ) )
RETURN
TTM - TTM_PY
I'm having two issues with this script.
1) This script is comparing FY16 to the previous period that does not exist in any table that I have. Is there somehow a way to just compare FY16 to FY17?
2) When I'm comparing TTM Apr-19, this script is comparing TTM Apr-19 with TTM Apr-18, however I would like to compare any TTM period in the table with the last FY available (in this case, FY18).
I really appreciate any help and I can provide more info if necessary.
PS: My TTM and TTM PY is working well, my problem, is when I compare it.
Thank you
Just a quick update. For the item #1, I found a solution. Just need for the item #2.
User | Count |
---|---|
50 | |
24 | |
18 | |
17 | |
14 |
User | Count |
---|---|
91 | |
86 | |
39 | |
25 | |
21 |