Hello @Gangadhar_Reddy
Welcome to the community! Thanks for your question!
To create the desired insights in Amazon QuickSight, follow these steps:
Step 1: Data Preparation
Ensure your data is correctly formatted and uploaded to Amazon QuickSight.
Step 2: Creating Calculations
You need to create calculated fields to determine the percentages and differences you want to display in your insights.
1. Percentage of Tables in Redshift
Create a calculated field to determine the percentage of tables in Redshift for the latest reporting week.
- Go to your dataset.
- Click on “Add” → “Calculated field”.
- Name it Redshift_Percentage.
- Use the following formula:
Example
ifelse(
{category} = 'Redshift' and {week_end_day} = 'June 15',
{# of tables} / sumOver({# of tables}, [{week_end_day}]) * 100,
NULL
)
2. Percentage Increase in S3 Adoption
Create another calculated field to calculate the percentage increase in S3 adoption.
- Add a new calculated field.
- Name it
S3_Adoption_Increase
.
- Use the following formula:
Example
ifelse(
{category} = 'S3' and {week_end_day} = 'June 15',
({# of tables} - sumIf({# of tables}, {week_end_day} = 'June 8' and {category} = 'S3')) / sumIf({# of tables}, {week_end_day} = 'June 8' and {category} = 'S3') * 100,
NULL
)
Step 3: Adding Insights
Use the calculated fields in your insights.
1. Insight for Percentage of Tables in Redshift
- Add an insight visual to your analysis.
- Drag the Redshift_Percentage field to the insight.
- Customize the narrative to display: “For the latest reporting week June 15, there are ${Redshift_Percentage}% of the tables still under Redshift.”
2. Insight for S3 Adoption Increase
- Add another insight visual to your analysis.
- Drag the S3_Adoption_Increase field to the insight.
- Customize the narrative to display: “The adoption of S3 has increased by ${S3_Adoption_Increase}% from 100 to 150.”
Final Customization
- Format the insights to ensure they are clear and concise.
- Adjust the narratives and formatting as needed to match your requirements.
- Control the week_end_day values through the parameter. In the above examples, it is hardcoded.
By following these steps, you should be able to achieve the desired insights in your QuickSight dashboard.