Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Changing the order of stacked bar

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Changing the order of stacked bar
 Login/Join
 
Member
posted
Hi,

I'm trying to change the order of a stacked bar and instead of ordering the entire bars (based on the total) I'm getting the series seperated and eack series is sorted seperately.

Does anybody know how to sort the stacked bars correctly?

Thanks

This message has been edited. Last edited by: FP Mod Chuck,


InfoAssist
WebFocus 8002M Windows, All Outputs
 
Posts: 3 | Registered: February 22, 2013Report This Post
Platinum Member
posted Hide Post
Search the forum with "graph sort order". There are a lots of examples how to do this.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Member
posted Hide Post
Thanks Alex, the problem is that we only have access to the info assist GUI without the ability to change the report code.

I can change the sort order easily but it will split the series. I didn't find a way to do it in the info assist UI.


InfoAssist
WebFocus 8002M Windows, All Outputs
 
Posts: 3 | Registered: February 22, 2013Report This Post
Gold member
posted Hide Post
Sagie,

Can you post a sample code or an image to show us what you are trying to solve?

Thanks!
 
Posts: 52 | Registered: January 19, 2007Report This Post
Member
posted Hide Post
Absolutely:
Image
Thanks,

Sagie


InfoAssist
WebFocus 8002M Windows, All Outputs
 
Posts: 3 | Registered: February 22, 2013Report This Post
Guru
posted Hide Post
I know this post is old, but I ran into this issue, and resolved it, so I figured I'd update this thread.

In InfoAssist, if you are building a stacked bar chart, you can split your measure with a By Field and a Legend Series field. The Legend Series field becomes your bar 'slices,' and the By Field controls the number of bars.

Problem: If you sort by the Measure, you turn the bar slices are turned into discrete bars, which are no longer stacked

Solution:

1. Define a field for every bar slice, then add the fields as Measures. Something like IF EQ 'Value1' THEN ELSE 0, repeated for every value in the Legend By field
2. Do not use any field in the Legend Series. Do add you main By Field to create the X-Axis bars
3. At this point, the chart is still not sorted. Add the as another measure, which will make your chart double what it should be (measure field plus the discrete bucketed define fields)
4. Sort descending on the measure field you just added, then right click and hide the measure field

Now you have a stacked bar chart that is sorted by highest total value, as desired

Cheers,

Joey


-WebFOCUS 8.2.01 on Windows
 
Posts: 318 | Location: Los Angeles, CA | Registered: November 15, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Changing the order of stacked bar

Copyright © 1996-2020 Information Builders