Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

How to create this double X-axis graph?

Hello.

I have created this graph in Excel and I would like to do it in powerBI, but I have tried but I do not succeed, for each year I have two columns of data.

Any ideas?

Greetings and thanks.

Aguirre_0-1646899434379.png

  • Hi Syndicate_Admin ,

     

    You need to convert your data to something like below one. Use Year and Category columns in axis and Country in legend. Lastly, sort the visual by your columns (not measure) ğŸ™‚

     

    CountryYearCategoryValue
    SPAIN2017Target600
    SPAIN2017Executed500
    SPAIN2018Target600
    SPAIN2018Executed555

4 Replies

  • Hi Syndicate_Admin ,

     

    You need to convert your data to something like below one. Use Year and Category columns in axis and Country in legend. Lastly, sort the visual by your columns (not measure) ğŸ™‚

     

    CountryYearCategoryValue
    SPAIN2017Target600
    SPAIN2017Executed500
    SPAIN2018Target600
    SPAIN2018Executed555
    • Syndicate_Admin's avatar
      Syndicate_Admin
      Administrator

      Thanks for the reply, but I can't do it.

      I have created a table as directed.

      Aguirre_1-1646902549171.png

      I have designed following in their footsteps, but the result is not what I want. The last step of not measuring I do not understand well, could I clarify and say that it fails me?

      Thanks a lot.

      Aguirre_0-1646902495515.png