Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Creating a diverging bar chart to show sentiment

I am trying to create a diverging bar chart very similar to this post here: https://community.powerbi.com/t5/Desktop/Creating-a-diverging-stacked-bar-chart-to-show-sentiment/m-p/1016209#M480507 parr...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Anonymous 
    With 4 variables, you could use a Switch() or Nested IF() to include the 4 values rather than just:

     

     IF ( SELECTEDVALUE( 'Table'[Sentiment] ) = "Negative", -1, 1 )

     

     

    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.