Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
Go to the QuickSight service homepage:
Go to the sp_usage analysis:
Create a line chart, add line_item_usage_start_date to the X axis, aggregate day. Add spprice to the Value and set the aggregate to min. Drag the product_instance_type to Colour field well. Change the title to Usage in Savings Plan Rates:
Click Parameters, and click Create one:
Parameter name OperatingSystem, Data type String, click Set a dynamic default:
Select your dataset, and select product_operating_system for the columns, click Apply:
Click Create:
Click Control:
Enter OperatingSystem as the display name, style Single select drop down, values Link to a data set field, dataset your data set, column product_operating_system, click Add:
Using the process above, Add the parameter Region:
Using the process above, Add the parameter Tenancy:
Create an InstanceType parameter, datatype String, Single value, Static default value of . (a full stop):
Click Control,
Display name InstanceType, style Text box, click Add:
Click Filter and click Create one, select product_instance_type:
Edit the filter, Filter type:
Create a Parameter DaysToDisplay:
Click Control:
Enter a Display name DaysToDisplay, Style Text box and click Add:
Click on Filter, click +, and select line_item_usage_start_date:
Click on the new filter:
Select a filter type of:
Create a filter for product_operating_system:
Create a filter for product_location:
Create a filter for product_tenancy:
Click on Visualize, click Add, select Add calculated field:
Field name HoursDisplayed, add the formula below and click Create:
distinct_count({line_item_usage_start_date})
Create a calculated field HoursRun, formula:
HoursDisplayed / (${DaysToDisplay} * 24)
Create a calculated field PayOffMonth, formula:
ifelse(((((sum(spprice) / HoursDisplayed) * 730 * 12) / ((sum(odprice) / (${DaysToDisplay} * 24)) * 730))) < 12,((((sum(spprice) / HoursDisplayed) * 730 * 12) / ((sum(odprice) / (${DaysToDisplay} * 24)) * 730))),12)
Create a calculated field SavingsPlanReco, formula:
ifelse(PayOffMonth < 12,percentile(spprice,10),0.00)
Create a calculated field StartSPPrice, formula:
lag(min(spprice),[{line_item_usage_start_date} ASC],${DaysToDisplay} - 2,[{product_instance_type}])
Create a calculated field Trend, formula:
(min(spprice) - {StartSPPrice}) / min(spprice)
Create a calculated field First3QtrAvg, formula:
windowAvg(avg(spprice),[{line_item_usage_start_date} ASC],${DaysToDisplay},${DaysToDisplay} / 4,[{product_instance_type}])
Create a calculated field LastQtrAvg, formula:
windowAvg(avg(spprice),[{line_item_usage_start_date} ASC],${DaysToDisplay} / 4,1,[{product_instance_type}])
Create a calculated field TrendAvg, formula:
(LastQtrAvg- First3QtrAvg) / First3QtrAvg
Add a Visual, click Add, select Add visual:
Select a Table visualization, Group by product_instance_type, Add the values:
Add a Pivot Table visual, Rows: product_instance_type and line_item_usage_start_date aggreate: day, Add the values:
Add a filter to this visual only:
Decrease the width of the date column as much as possible, its not needed
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool