How to show blank data until refresh for direct query in power bi - powerbi

I have created one report from Direct query.
Now the requirement is when we open the report, it should show blank data until user refreshes it.
When the user refreshes it the data should be shown.
How can I achieve this?

You can emulate this with some tricks:
Create a bookmark with no applied filters
Create a button and assign this bookmark as the button action
Filter your page to show nothing (apply some bogus filtering)
Save and publish report
This should make the report show nothing by default, and when the user clicks «show data» or whatever text you put on the button, the user is moved to the bookmark without any data filters, so the data is shown.
Outside of this method I can’t think of other means of showing data only when the user clicks refresh.

Related

Refresh only one region instead of the whole page in oracle apex

I have made a region containing 2 display only items and a button.
The button performs some dynamic action (execute pl/sql query) and the page is refreshed every time the button is pressed (submit page action) .
Is there any way that on click of the button only that particular region gets refreshed instead of the whole page?
Also for the display only items, lets say
item_label ==> item_display_value
how to add this (==>) symbol in between?
If the page is submitted, then it will refresh completely - that is how apex works. But if a submit is not needed, you can add an action of "refresh" to the dynamic action and remove the submit. Make sure the "Behaviour > Action" property of the button is set to "Defined by dynamic action".
Note that not all region types support refresh, but all report types do.

Oracle APEX form on table, don't reset table pagination after changing values through the form

I have a form on top of a report, and when the user updates values in the report, the form pops up, they make edits, and then click "Apply Changes". There are many rows in the report and right now I have pagination set per every 15 pages. The report is set to enable partial refreshes so the data updates right after the user clicks "Apply Changes". However, if I am on any page other than the first page of the report, it resets the pagination and brings me back to the first page. Is there a way to update the report but stay on the page I'm making the edit for? That way the user can immediately see the change they made through the form.
I was able to solve the issue by using a Dialog Closed dynamic action executing the following javascript:
window.location.reload(false);
It refreshes the browser after the user makes edits, and the pagination does not reset. This is a workaround because the Refresh dynamic action resets pagination. Again this is in APEX 5.1.3.
Which Apex version do you use? I've just tried it on apex.oracle.com which runs Apex 20 and - no problem at all. Once I edit some value in a form, branch returns me to interactive report, to exactly the same page which I left.
Check branch's Behavior - it is set to redirect to page or URL, target is page where the interactive report is; check other properties for the target. Its action should be set to "None" (offered are: clear regions, reset regions, reset pagination which might be set in your branch properties).

Glitch using drillthrough and action

I am having trouble with a Power Bi report I have built on the desktop version.
I have a page with a graph and a button and a second page with a table of data. The button has an action to go to the bookmarked data page and the graph has a drillthrough linked to the data page.
When I open up the report and click on the button, it works correctly, then I click on the graph drillthrough and that works correctly too. But, when I then go back to the button and click it again, it shows whatever was last showing on the drillthrough from the graph. I have to exit the report to be able to show the full table using the button.
I have tried removing ticks from the bookmark, I have removed data and display, but this hasn't fixed it. I am new to Power Bi so I am not sure what to try next.
As I suggested in comments, the default bookmark settings that include data and page should work for your case. I have done exactly what you described in your post. I have two pages: Page1 with summary chart and bookmark button; Page2 which is a drill-through.
I have configured a bookmark with default settings and saved it on the drill-through page with no filters applied. I then do this:
Page1 drill-through to store=500
See Page2 filtered
Navigate to Page1
Click bookmark button
See Page2 unfiltered.
Here is my bookmark config. Note the bookmark was saved on the drill-through page with no filters applied:
Here is what I see when I drill-through on store 500:
And then I navigate to page 1 again. I click on the button attached to the bookmark and I see this on the drill-through page:

Need to click on a widget to give it focus in Power BI Embedded

I have a Power BI embedded report, embedded in my web app.
While the report is working as expected I find that I need to click on a widget within the report before being able to click on the items within the widget.
So for example I have a slicer containing a list of names. When I first click on the slicer, it selects the slicer but does not drop down the list of names, the next click allows me to see the list of names.
Is there anything I can do to change this behaviour, such that the first click on the slicer shows the list of names available.
It seems this is caused by me requesting the report in mobile view. Switching to desktop view stop the second click issue.
I had chosen mobile view, as this view allowed the UI to switch between views (landscape/portrait) dynamically without having to reload the report. In desktop view if the user resizes the browser page, the report shrinks shrinks rather than switch between views.

How to save current sysdate in apex

I am using Oracle APEX to build an interactive report, in the edit page, there is a display only field called update time and the value is the last updated time. When I click submit page, I want to update this field to the current sysdate.
What I did is that I created a dynamic action which fires when page uploaded. The action changes the update time field to the current sysdate. However, this doesn't work. I am wondering if there is any other ways to do this? Thanks!
If you have a unique column in your table, you can create a procedure in page processing section and assign it to the submit page button. When you click submit button, procedure will update the update time field.
To make a page processing:
Go to Process section and click create button
Select PL/SQL Code as Process Type
Give a name to your Process
Write your procedure in field. You can assign a fields value like: update table set update_time = sysdate where ID = :P3_ID
You can define success or error message
Define your button to When Button Pressed section
Hope this helps.