Superset display dynamic content from query (markdown) - apache-superset

I would like to display a chart in a dashboard displaying text. The text value is retrieved from a query.
e.g.
I have the following query:
SELECT MAX(update_date) FROM my_data_tbl
I would like to create a box (inside the dashboard) like this one:
I've tried with the 'Markdown Chart' but i don't understand how to dynamical push data into the component

I don't think getting data into the markdown "chart" is currently possible. The markdown is more for adding text to a dashboard.
One hacky way to do this could be to use the Table chart type. Values in a table can use html. You'll most likely have to do some awkward string manipulation using SQL to get html into your query results, but it works.

Related

Is there a way to create a char(13) delimited string that can be used in Power BI?

I am creating a report in Power BI and would like to create an client address string that is formatted as a standard line-delimited postal address in the United States.
I tried creating a DAX measure, but could not get around the error:
A single value for column 'ServiceAddress1' in table 'pbiCoverPage' cannot be determined.
This error occurs if I try to use the DAX TRIM function on any TEXT column for a Measure.
As a workaround, I created a SQL View that returns a CHAR(13) delimited string with a postal address.
However, if I display the field in a card visual, the CHAR(13) do not create separate lines. The postal address is displayed on a single line with the CHAR(13) interpreted as a spaces.
My questions are:
Can text fields be used at all in DAX Functions such as TRIM in a Measure?
Is there a Power BI Visual, other than 'Card' that can display text on a report?
Displaying a postal address should not be a difficult task. Is there a simple way to do this in Power BI?'
Is there any way to use a Text Box in Power BI to show a field value? I think this would allow me to left-justify the address string.
If I try to add a Value to a text box, I get a message:
To turn of Q&A, we need to create a local index of your data. If you publish the report, we'll one in the service as well.
I am researching this message. It seems like I am driving a tack with a sledge hammer. Is there an easier way to display a formatted text string in Power BI?
I tested the following approaches:
Use a Button. The button supports text alignment and has word-wrap. However, it does not support line delimiters such as CHAR(10) or CHAR(13).
Use the HTML Content Custom Visual from:
https://www.html-content.com/
The HTML Content control allows you to write SQL Queries that return HTML that includes the <br> line-break tag.
Thus far, the HTML Content visual is the only way (short of a custom R or Python visual) to display a string (such as a postal address) with multiple delimited lines in Power BI.

How can I get my PBI report to populate each query result on a new page?

Relative NEWB to PowerBI report builder and have a question about report iteration. Basically, I have a dataset that contains data for 'scorecards'. I want each page of the report to be one 'scorecard'. This corresponds to each row in my dataset query accordingly. I formatted my report accordingly and was anticipating that when I linked each textbox to its corresponding dataset field, when I run the report, I would have a multi-page report; however, I'm only seeing the first query result. I'm assuming this has something to do with the first() function. What am I missing?
edit - I'm basically trying to recreate the functionality of an Access 'report' where each record is displayed on a new report page.
I figured this out - it was staring right in front of me! I needed to add a 'List' data region. I can then design the report and it creates a new page for each record.

PowerBI Embedded - Formatting disappears on render

I have a PowerBI report built in PowerBI desktop and displaying in a .net app using javascript. We have basic cards with decimal values formatted as currencies or percentages (in the formatting ribbon in PowerBI desktop). When the embedded report first displays in the web app, the formatting symbols ($, %) show for a split second and then disappear. I've removed layout and any extra style sheets and javascripts from the page, but still get the behavior. Have also set the localSettings in the JS config. Any ideas?
It's not a great solution, but a potential workaround would be to format the values using the FORMAT function which changes them to be text strings in the format you define rather than numeric values that get formatted however it decides.
For example, if you have a [measure] you can define another one like this:
measure_formatted = FORMAT ( [measure], "$ #,0.00")

Oracle Apex 5 Checkbox binding

I have an apex interactive report and a matching edit form working. I'm trying to add extra column in my database that would bind to a checkbox on a report and a form for each row. The only way of doing that after researching various references seem to be using APEX_ITEM.CHECKBOX2 in SQL query and selecting graph as column data type. I can render a check box but it is not bound and to save the state I figure I would have to script some code somewhere. Seems to be an awkward way of doing things considering text just binds out of the box. Is there a better way of binding a row level check box in an interactive report, i.e. choosing some specific data type in a database?
Thank you in advance,
Radek

PowerBI exporting dataset to document with template

I'm interested in Microsoft PowerBI and I want to export a dataset to PDF, doc(x) or HTML using a template. I don't want to create graphs or dashboards, I just want to display the data in a visually appealing way. I would like to be able to edit the template and possibly style it using css or some kind of template editor.
Is this possible using PowerBI?
You can use Excel instead of Power BI. You can copy the Power Query code verbatim, so you will get the same data that the Power BI data model has.
In Excel, you can create pivot tables from the output or just style the output from the query as desired.
Then you can refresh the query and save the result as a PDF. This can be automated with VBA.