Monday, May 26, 2025

Custom exceptions UI in OAC/OAS table

 Sometimes we want to create an exceptions UI that is beyond the regular options of the tool.

Specifically, something like this:

Let's see what was created by default and what is a customization...

To create the square near the "% profit" I used the standard Conditional Formatting: 



Added an icon:
Add a note (you see it at the top right of the first image, only for the first line):

Since in the previous screen "Show rule condition" is marked, the Legend appears as well:


Now what about the extra column with the red and green squares? 
Since I don't have this visualization built-in, I created a dynamic column, with the following calculation:

case 
when @calculation("profit") < 0.1 then '🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥' 
when @calculation("profit") < 0.2 then '🟥🟥🟥🟥🟥🟥🟥🟥🟥🟩' 
when @calculation("profit") < 0.3 then '🟥🟥🟥🟥🟥🟥🟥🟥🟩🟩' 
when @calculation("profit") < 0.4 then '🟥🟥🟥🟥🟥🟥🟥🟩🟩🟩' 
when @calculation("profit") < 0.5 then '🟥🟥🟥🟥🟥🟥🟩🟩🟩🟩' 
when @calculation("profit") < 0.6 then '🟥🟥🟥🟥🟥🟩🟩🟩🟩🟩' 
when @calculation("profit") < 0.7 then '🟥🟥🟥🟥🟩🟩🟩🟩🟩🟩' 
when @calculation("profit") < 0.8 then '🟥🟥🟥🟩🟩🟩🟩🟩🟩🟩' 
when @calculation("profit") < 0.9 then '🟥🟥🟩🟩🟩🟩🟩🟩🟩🟩' 
when @calculation("profit") < 1.0 then '🟥🟩🟩🟩🟩🟩🟩🟩🟩🟩' 
else '🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩'  end


How does it work? The red square and many others are valid characters... I only use them. See examples here:

https://unicodeplus.com/U+1F7E5

or here:

https://www.compart.com/en/unicode/U+1F7E9

The remaining problem is the Oracle Analytics automatic column width. The above-mentioned squares need more space than regular character. 

As a "quick and dirty" work around I forced a longer column title:


You can always use "hard space" to force the longer header. Like this: "            The percent of profit"

Copy/Paste from the blog wouldn't work here, but you can always create a hard space by holding the "ALT" key and pressing 255. 


The same calculation works here as well (Watchlist UI):

 



Useful examples:

Orange Circle 1F7E0 - ðŸŸ 

Yellow Circle 1F7E1 - ðŸŸ¡

Green Circle 1F7E2 -  ðŸŸ¢

Purple Circle 1F7E3 - ðŸŸ£

Brown Circle 1F7E4 - ðŸŸ¤


Red Sq. 1F7E5 -         ðŸŸ¥

Blue Sq. 1F7E6 -        ðŸŸ¦

Orange Sq. 1F7E7 -    ðŸŸ§

Yellow Sq. 1F7E8 -    ðŸŸ¨

Green Sq. 1F7E9 -     ðŸŸ©

Purple Sq. 1F7EA -    ðŸŸª

Brown Sq. 1F7EB  -  ðŸŸ« 


Blue Heart 1F499 - ðŸ’™

Green Heart 1F49A - ðŸ’š

Yellow Heart 1F49B - ðŸ’›

Purple Heart 1F49C - ðŸ’œ

Heart Decor 1F49F - ðŸ’Ÿ


White star 2B50 - 

Manual W-Chair 1F9BD - ðŸ¦½    267F - 

Nine Branches 1F54E - ðŸ•Ž





Sunday, March 30, 2025

Oracle Analytics, Data Flow, is there a row limit?

 When working with Oracle Analytics we can use "Data Flow". This is end user oriented ELT tool. 

Usually the results are limited to 2 million rows, yet there is a case when the limitation doesn't kick in. This happens when all the sources and the target are in the same Database. In that case the entire process is done in the DB and is not subject to the limitations.

This is documented in Oracle Support: What Are The Data Row Limits and Join Limits For Data Flows in Oracle Analytics? (Doc ID 2789840.1) where this behavior is described as "function ship". 

For example, I will use my NY.Yellow table with over 50 million data rows.



When trying to load the DB table-based dataset into Dataset Storage using dataflow, I see the 2 million rows limit in the data flow log:



[nQSError: 60008] The query exceeded the maximum query governing rows 2000000 from the database ...



When both source and target are in the same DB (and the target is Database Connection), I load successfully all the 50 million rows into a new dataset without issues. 






Wednesday, March 12, 2025

Oracle Analytics Server 2025, AKA 8.2 is available

Oracle has released this year OAS version, OAS 2025, sometimes named internally, OAS 8.2.

This is the official blog post about the release, it includes some new features too: https://blogs.oracle.com/analytics/post/announcing-the-general-availability-of-oracle-analytics-server-2025

The documentation is here.

The "what's new in OAS 2025" section is here.

While the download page is here, I recommend using the edelivery site here, if you don't want the complexity of searching the correct version of Weblogic.



Gianni Ceresa uploaded the docker version here: https://github.com/gianniceresa/docker-images/tree/master/OracleAnalyticsServer  


Since the OAS 2025 should be equivalent to OAC Jan 2025, you can also look at the list of OAC new features videos of March 2024 - January 2025 here



Seems we are ready...



 


Monday, December 23, 2024

Oracle Analytics Default date format in parameter

 A quick reminder to my self:

When creating a parameter and want to use it in filter / calculation, there must be a default. For date default this is the default format: 

DATE '2014-04-12'

For example: 

Val_Date = @parameter("P_DATE")(DATE '2014-04-12')