cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tsynenkyy
Helper II
Helper II

Stacked column char (4 regions + 1 country)

Hi Guys,

 

I have the following column char:

tsynenkyy_0-1656054572205.png

 

 

As you can see there is the net saving splited by regions, what I need is to have 4 regions + 1 country, for example:
LA, AA, EU, NA, Germany.

 

I extract everything from one table. The problem is that I have one column for Regions and another one for Countrys.

 

How can I insert one country to that graph?

 

Thanks

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @tsynenkyy ,

 

As a workaround, you could create a seperate table with one column which has regions and countries as follows.

vstephenmsft_0-1657248972599.png

Then create a measure with SWITCH() function. For example,

 

Measure =
SWITCH (
    MAX ( 'TableName'[Regions/Countrys] ),
    "LA", [Expression1],
    "AA", [Expression2],
    "EU", [Expression3],
    "NA", [Expression4],
    "Germany", [Expression5]
)

 

Then put the measure into Values, put the Regions/Countrys column into X-axis.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @tsynenkyy ,

 

As a workaround, you could create a seperate table with one column which has regions and countries as follows.

vstephenmsft_0-1657248972599.png

Then create a measure with SWITCH() function. For example,

 

Measure =
SWITCH (
    MAX ( 'TableName'[Regions/Countrys] ),
    "LA", [Expression1],
    "AA", [Expression2],
    "EU", [Expression3],
    "NA", [Expression4],
    "Germany", [Expression5]
)

 

Then put the measure into Values, put the Regions/Countrys column into X-axis.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, thanks for your answer.

 

What is the "Expression1, Expression2..."??

is the measure net saving?

Hi @tsynenkyy ,

 

You can replace the “Expression” with your own measure or specific formula.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.