Tuesday, July 7, 2009

html/css trick

I had an issue yesterday with a field that contained a concatenated type code (Type in this report) and a ROW_WID . The report is supposed to show the Type value only:CA instead of CA384639 for the Type field while maintaining the correct subtotal count.


Substring function to extract the first two letters as follows doesn’t work because the subtotal operation is performed AFTER the substring command is done

You get then for the first subtotal 1 instead of 2 because even though the aggregation is set to “count distinct” , it's counting 'CA'

The solution we used kind of a kludge but it worked): change the Type data type to “HTML” and using a CSS to hide the WID part, enter the following in the column formula:



is basically a CSS tag to hide text

And voila you get





3 comments:

John Minkjan said...

Cool Trick!

Regards John
http://obiee101.blogspot.com/

Srinivas Malyala said...

Very cool trick.
Thanks for sharing with us

--Srinivas

Tech said...

Hello,


For leveraging traffic from the internet, I have manually collected a list of quality blogs and sites with whom I am interested in getting associated.

I liked your Site/blog and i'm interested in having my blog's text link in your blog roll or Friends Section.

To process this link exchange please place my blog on your home page using the
below info

Title: PHP Developer

Url: http://www.adamsinfo.com/php-mysql-developer/

And send me your link info with confirmation of my link so that I could place
you link on my blog. We will make link back to you on our home page (PR 5).

I hope I will hear from you as soon as possible.
Sincerely,
Webmaster
Adamsinfo.com
seo@apnicsolutions.com

Post a Comment