My End Goal: Get a KPI visual that showing the percentage change based on a metric (incident number) for this month-to-date vs. last-month-to-date, [eg. Today is 12/17, I want a number from 12/1 to12/17, and another number from 11/1 to 11/17, and compare its difference. If there are 40 incidents since this month, and 80 from 11/1 to 11/17, then the KPI showing “-50%”].
What I did: Since the built-in “filter” can do “this month”, but not “previous month beginning till same date last month”, I have to create 3 calculated fields (MTD, LMTD, PercentageChange) to pull the number I want from the dataset. Like this:
And then add the “PerChange” as the new KPI.
Problem with that method:
- The KPI is not showing what I want (wrong percentage)
- The “PerChange” is assuming MTD is greater than LMTD, which is not always the case.
Question: How show I solve these? Or in general, is there a way to add a new KPI visual, calculating based on 2 other KPIs in QuickSight? Or write a SQL code?
Thanks!!