Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I tried to build a population pyramid chart with some customize Tornado chart and the pyramid has 5 periods 2016, 2021, 2026, 2031, 2036

Is there any possible way to have 2016 as the default view

Pop pyramid

1 Answer

0 votes
by (22.5k points)
edited by

Use the following measure

erp_lowest_year = 

VAR min_year = MINX(ALL(Sheet1),Sheet1[Year])

RETURN 
CALCULATE(
    SUM(Sheet1[ERP]),
    FILTER(
        ALLEXCEPT(Sheet1,Sheet1[LGA],Sheet1[Agegroup],Sheet1[Sex]),
        Sheet1[Year] = min_year
    )
)
erp_sum = SUM(Sheet1[ERP])
erp_final = 
SWITCH(
    SELECTEDVALUE(Sheet1[Year]),
    BLANK(), [erp_lowest_year],
    [erp_sum] 

) 

And in tornado configure as below:

enter image description here

You can register for this online Power BI training course by Intellipaat to learn Power BI.

Related questions

0 votes
1 answer
asked Feb 28, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jan 17, 2021 in BI by Chris (11.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...