Dynamic Formatting in Xcelsius Tables

Xcelsius’ Excel paradigm for binding data inherits Excel’s absence of dynamic cell formatting. In Excel, you define a cell format as text, percentage, value, date, etc… When you bind a component to a cell or range, it will automatically inherit the formatting. If your hoal is to filter data by measures, you may have found that there is no way to dynamically change number formats on the fly. For example, if you have a table that is filtered by sales, volume, and growth %, dynamic formatting becomes a problem. While there is a good workaround for displaying values in a table, there is no good option for graphs.

The solution for displaying dynamically formatted tabular data is converting values to text using the TEXT() formula. The beauty of the text formula is the option to define number formatting. TEXT(value,text_format)

TEXT(A1,$#,##)
TEXT(A1,##%)
TEXT(A1,#,###)

The following example illustrates how this text formatting can be utilized to present tabular data in the correct format without using multiple components. Hopefully at some point we will see this dynamic formatting built into Xcelsius as standard functionality for charting. One of the few drawbacks of Xcelsius’ Excel paradigm is the borrowing of Excel’s lack of dynamic cell formats. In Excel, you define a cell format as text, percentage, value, date, etc… When you bind a component to a cell or range, it will automatically inherit the formatting. In most cases this is a good feature. In others where you are filtering data by measures, it creates a problem. For example, if you have a table that is filtered by sales, volume, and growth %, dynamic formatting becomes a problem. While there is a good workaround for displaying values in a table, there is no good option for graphs.

The solution for displaying dynamically formatted tabular data is converting values to text using the TEXT() formula. The beauty of the text formula is the option to define number formatting. TEXT(value,text_format)

TEXT(A1,$#,##)
TEXT(A1,##%)
TEXT(A1,#,###)

The following example illustrates how this text formatting can be utilized to present tabular data in the correct format without using multiple components. Hopefully at some point we will see this dynamic formatting built into Xcelsius as standard functionality for charting.

Download Source Files

Did you like this? Share it:

BOBJ User Conference

It was wonderful putting faces to the many blog readers who attended the BOBJ user’s conference this week in Dallas. Though the least technical topic on my list was chosen by BOBJ for me to present, it was fun showing off some of the new Centigon Solutions plug-ins. This was definitely a coming out party for my company since there was a lot of Xcelsius buzz through-out the conference. I appreciate the compliments on the blog and the work I have done in the last year. I certainly came back re-energized to ensure I continue to keep writing helpful content for you to leverage as you build dashboard solutions for your business.

Thank you all for your support,

Ryan Goodman

Did you like this? Share it:

Xcelsius chapters in Crystal Reports 2008 Official Guide

I just got my copy hot off the press of “Crystal Reports 2008 Official Guide”. I was excited to be a contributing author for this book, and provided two chapters about Xcelsius 2008. Chapter 20 covers Xcelsius basics including charts, selectors, containers, and design features. Chapter 21 covers advanced properties, Excel logic, and connectivity. Both chapters provide enough direction to jumpstart a new Xcelsius developer using step by step instructions to what I consider the most important Xcelsius 2008 features. If you happen to read a copy, feel free to provide me with some feedback for future editions.

Click to get a copy from Amazon

Crystal Reports 2008 Official Guide

Did you like this? Share it:

Selector Dynamic Visibility

In the past few projects, I have had issues setting dynamic visibility for selectors like label based menu. While I have not pinned down the exact combination that gives me the error, I have found one method to ensure it never happens. The symptoms are a SWF that seems to freeze up after you click on a selector. For those of you who use the debug version of flash player, you get an error before the SWF stops working.

If you bind the dynamic visibility “Status” property to a cell with a formula, this issue is avoided. In scenarios where you don’t use logic, just place an “=” in front of the value. I have hit this problems 3 or 4 times now, but am unable to replicate it in a simple example. For my regular readers who use Xcelsius on a regular basis, I figured I would warn you in case if you hit the same problem.

dynamic visibility

Did you like this? Share it:

Switch to our mobile site