Coloring Line in Table in Superset - apache-superset

Is it possible to color a line in a table view in the Dashboard based on the content of the table?
For example: In a list of Salesmen highlight in red all salesman with more than $200,000 of sales in the last month.

I don't believe this is something you can currently do off-the-shelf - but this is something you could probably hack together by adding some custom js and css:
Create your own override.js and override.css to implement something similar to what's described in Changing background cell of table depending on value
Add your css and js files to /superset/templates/superset/basic.html
Rebuild / restart your superset server (see https://superset.incubator.apache.org/installation.html#making-your-own-build)

Related

How to set two filtering values in one column of links in an interactive report? (Oracle Apex 21.1)

I need help creating a link in Oracle APEX.
I have two Interactive Report pages created in Oracle APEX.
The first page is an Interactive Report for a list of cats. When clicking on that link, filter the second page's Interactive Report by the "fur color" column. Furthermore, I want to always be "white" in addition to the color of the selected row.
I try 2 types of methods to create a link in Link Builder.
Name = IR_FUR_COLOR, Value = &P18_FUR_COLOR. and more one line Value = White
Name = IR_FUR_COLOR, Value = &P18_FUR_COLOR.,White
But they did not work.
How should I do it? Does anyone help me?
Thank you for watching this question!
Link Builder should contain only
Name: IR_FUR_COLOR, Value: &P18_FUR_COLOR
Modify the second Interactive Report's query so that its where clause looks like this:
where fur_color in ('white', :IR_FUR_COLOR)
which means that it'll always filter white color, along with any color you pass from the previous page.
There are variations to that approach; for example, you could create another (hidden) item on the 2nd page and pass white to it and then
where fur_color in (:HIDDEN_FUR_COLOR, :IR_FUR_COLOR)

Superset charts customization (and column names)

Would like to know if I understand the following correctly:
In order to customize charts we can use CSS templates
with JSON I can only work with data and connection (so if I want to customize something it's only with CSS)
If I want custom charts I should dive in echarts/preset/custom viz via npm yo etc.
Can I do a dynamic column name based on parameter (like in tableau for example) (so if I choose "%" column name be like "%_of_money" and "number" => "number_of_money")?
For dynamic columns i think you could create the columns as metrics. Refer to tutorial on this blog.
https://preset.io/blog/understanding-superset-semantic-layer/

Drillthrough a column of a matrix

I have the following page :
I want to click on the name of the agent to move to report with more details for an agent, this is a simplified example:
Can I include filters in the detailed target page ?If yes, can I add a clear filters butto?
In this matrix, can I format only the Agent name ? Make the color blue and the font underlined?
Can I include filters in the detailed target page ?
Yes. It's the nature of Drill-Through to carry the active filters from the source page to the target page. If you want to include filters that aren't specifically included as drill-through filters, then there is a specific setting "Keep all filters" that governs this. Your detail page can also have it's own set of slicers and filters that will be applied regardless of the context that comes through via drill-through actions.
If yes, can I add a clear filters button?
There's one native in the service. You can also affect the filters using the filter pane. And you can add a bookmark that will restore the page to some pre-set state (without filters) and assign that bookmark to a button. That's a tiny bit different than removing filters, but for most folks it's close enough
In this matrix, can I format only the Agent name ?
Yes, but only in this simple case. Look for the 'Row Headers' and control formatting there. In Matrix visuals where there are hierarchal fields, they will all be colored by this setting so it will not just be agent names. Another approach would be to apply editing to subtotals and mark 'include label' and then turn the subtotals off. You would get color on the subtotal row, but it would show on every column.
Make the color blue and the font underlined
You can set the font color on 'Row Headers' to blue. Underscore is not an option.

APEX 5: Make a report cell clickable and pass values

Just got started on APEX 5 and can't seem to figure out how to make cells in an Interactive Report clickable. What I'm trying to achieve is something like this:
Let's say I have a report on Page 1:
I want to be able to click on any cell in Column 2 and 3, and it should open a new page and show a list of items that made up that number, something like this:
I understand how dynamic actions work and how I can pass values but I just can't figure out how I can hyperlink or make the cells clickable, to set up any dynamic actions.
You can make the Column Type a Link and under Link Attributes, define the target page and set the items or filter report accordingly. You can have the Link Text as #COLUMN_NAME#.
I think you will find this post useful
http://www.grassroots-oracle.com/2015/12/tutorial-include-action-button-in-report.html
but most of the time you should start with a very declarative looking link builder, once you change the column Type to "Link"

Eliminate gap between columns

How I am able to eliminate gap between columns in column chart like this, I didn't see any property to allow me to configure this:
There is currently no built-in option to eliminate the gap. Suggest you submit an idea at http://ideas.powerbi.com or make a contribution to the open source repo where our visuals are implemented so you get the feature you'd like: http://www.github.com/microsoft/powerbi-visuals