Dashboard - Data Source: UF SQL
AnsweredIs there a way to use a UF (Type: SQL Report) as the data source for Dashboards?
The use-case is that we use the query in different places, and only want to maintain it once.
-
You could put the SQL logic in a stored procedure and call that in both the report and dashboard.
-
Thank you for your request. It has been scheduled for review by the development team that will get back to you should there be questions.
(Please note that as we are user-driven we can't guarantee that your request will be met unless it gets many votes and/or fit the product vision)
Read more about the Feature Request process here
[Internal Id: 69437] -
Hi Sean,
Thanks for the quick response. I thought of this as well. When calling the SP, I could simply do
SELECT
T0."CardCode",
T0."CardName"FROM
SP_NAME T0
Would that work directly? Because we want to be able to use the Formats when displaying the SQL Report.
-
Hi Bijan,
The screenshot below uses a stored procedure to return the data. You can add formatting to the returned columns. If you need different columns in the UF that you do in the dashboard then you could use a view instead of a stored procedure.

-
Ah! It's the harder way .... That's okay too.
And, in HANA-land it would be:
CALL "BEGL_DASHBOARD_GetAPDeatils();
or something similar, right?
Off to create an SP in HANA~ Thank you!!!
-
Hi Bijan
Thank you for the suggestion. It is not something currently in the product (a repository of SQL Sentences) so I would properly go with SQL Views myself (gives best flexibility IMHO)
-
Hi Rasmus,
Thank you for the comment. A view was my go to as well, but I can't use a View as a data source for a dashboard, only SPs, right?
-
Bijan,
you can use a view in the same way as you use a select statement in the dashboard.Select * from [VIEW]
-
Ah yes! That is right. And same would be true for the UF, and it would be more manageable, and I prefer views when they're not functional in nature.
Thanks for the great advice everyone!!
Please sign in to leave a comment.
Comments
9 comments