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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


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