Hello QuickSight Community,
I’m transitioning a project from Power BI to AWS QuickSight and am looking for some guidance on how to replicate a specific visualization that uses two different measures on the Y-axis of a bar chart, with different filtering behaviors for each measure.
Requirements:
- Bar Chart with Year on the X-axis
I need to set up a bar chart where the X-axis represents different years. - Two Measures on the Y-axis:
- First Measure: Average Population Across All Countries by Year
This measure should calculate the average population for each year across all countries, and importantly, it should not be affected by any filters on the country. - Second Measure: Population of a Specific Country
This measure should reflect the population of a specific country and should respond to country filters.
Expecting Visulaztion like this:
Below is the link for dataset and PBIX File:
Current Measure used in Power BI:
-
Average Population All Countries (ignores country filter):
CALCULATE(
AVERAGE(‘Table’[Population]),
ALL(‘Table’[Country])
) -
Population of Country (respects country filter):
SUM(‘Table’[Population])
Anyone, Please help.
Thank you!