Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.