Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sabahat_quazi
Partner - Creator
Partner - Creator

Seprate positive and negative values in Bar chart

Hello Everyone,


I want to show positive and negative values in bar chart.


I have attached sample qvw

here if I select N_Flag=0 it gives me positive values in chart

select N_Flag=1 it gives me negative values in chart


If I do not select N_Flag= it calculates net values(which I do not want)


My requirement is to display positive and negative values in single chart.

Please suggest if there is any solution.

Regards,

Sabahat


11 Replies
sunny_talwar

Not sure if this is the best way to do this, but what if you add N_Flag as your second dimension here

Capture.PNG

sabahat_quazi
Partner - Creator
Partner - Creator
Author

Thanks Sunny for your quick reply.

But I need one bar for each 'To Product'.

Is there any other workaround?

sunny_talwar

Something like this?

Capture.PNG

sabahat_quazi
Partner - Creator
Partner - Creator
Author

Like below

vinieme12
Champion III
Champion III

Yes you can, just add one expression for each segment

Check the attached

     multisegment.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

sample app

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

May be try this

Butterfly chart example

sabahat_quazi
Partner - Creator
Partner - Creator
Author

Thanks Vineet.

Good Suggestion. But Number of products are not fixed ,they could increase in future. So in such case ,this approach wont work.

sabahat_quazi
Partner - Creator
Partner - Creator
Author

Hi Sunny,

For butterfly chart ,need to bring the data in format as given in attached example.

Can consider this option if we can format the data .

Thanks for your Suggestion!!