About Powerbi Embedded Reports Scheduled Refresh - mysql

We are planning to publish our powerbi reports in our sub-domain as a product for our customers. Our reports are refreshing on scheduled manner as new data arrives; hourly, daily, or per 3 hours (or live) etc. We initially tried to use 'publish to web' option, but we realise there is about one hour to see updates on published reports. We need it to be updated as scheduled update occurs.
We are considering to use embedded reports, but we could not find too much any information about how it refreshes. (we are using mysql as datasource for most of our reports)
Can we use embedded reports for that aim? Would it be refreshed instantly as we scheduled refresh our dataset/reports? Or are there any seperate methodology for refreshing embedded reports?

Power BI Embedded reports' data refresh is subject to how you define the refresh policy in Power BI. You can define a Scheduled Refresh (up to a limit defined by your capacity) or you can trigger a Refresh Now API call as described here:
https://powerbi.microsoft.com/en-us/blog/announcing-data-refresh-apis-in-the-power-bi-service/
As for the report's data, once the dataset is refreshed, any new render of the report would show the updated data.
If during the same session, you'd want to refresh the view of the report (by knowing that it has newer data) you can always call the Javascript SDK's report.refresh() call on the report.
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding---Basic-interactions#refresh-a-report

Please refer my article which explains about the data-set refresh manually and also using the WebAPI services
https://snkrishnan1.wordpress.com/2018/07/07/powerbi-dataset-refresh-using-net-webapi-service/

Related

viewing rows and/or rowcounts between activities (similar to ssis data viewer)

Does azure data factory have a built in way of viewing the records as they pass or have passed through the data flow activities?
Or, at the very least, view row counts of what was inserted, updated, deleted, upserted at the sink?
From the monitoring view in ADF at run time and from the data preview tab at design time.
Monitoring view runtime: https://learn.microsoft.com/en-us/azure/data-factory/concepts-data-flow-monitoring
Data Preview design-time view: https://learn.microsoft.com/en-us/azure/data-factory/concepts-data-flow-debug-mode#data-preview

How to reload gmail add-on through background process using app-script

May i get some help on the below points where i am using app-script to develop a gmail add-on:
How can we refresh gmail add-on with back ground process?
=> Here is my case, I need to display card with multiple sections which is the process of hitting multiple apis to fetch data and to display the card. For this initially we will show a card with minimal information to the user once i get information from api, i need to update the basic cards with complete information.
How can we trigger a function on every mail thread open?
=> Currently it works once for a mail, here as explained above point need to refresh a card once we fetch the data. If not, user will be seeing same basic information card every time he opens the mail.
From above mentioned issues for point one we are trying to get solution where we can hit service for certain interval of time to check data availability and if data exists then fetch data and update cards, i mean to say need a setTimeout function kind of thing, unfortunately we did'nt found this in app script and We found sleep/waitLock functions in app-script, but my services may take little time to fetch data as it connects though multiple services so we cant make the user to wait until the whole process is to be completed. So that we will show a card with basic information required then after need to auto refresh the cards once we fetch the data. we tried of keeping refresh button for the user to click and fetch the updated data but here we are losing user experience, trying for auto refresh with out user interference to get updated information.
Need a process / solution where we can auto refresh the card with out user interference after the data available at our end instead of making user to wait until the process to be completed.
Earliest reply will be more helpful for us.
Thanks.
If a data status on a third-party backend changes as the result of a user interaction with your add-on UI, it is recommended that the add-on set a 'state changed' bit to true so that any existing client side cache is cleared. See the ActionResponseBuilder.setStateChanged() method description for additional details.
The card-based interface in Gmail Addons is an Apps Script Service.
You can interlink it with other Apps Script services as well as implement API calls - everything within the same Apps Script file.
Gmail Addons contents automatically update every time the user opens a different e-mail or refreshes his browser.
Within your Apps Script code you can install time-driven triggers to run the data availability check with a customized frequency.
Consider to install for your users an Auto Refresh extension if you do not want them to refresh the card themselves.

SSRS data drive subscription with multiple formats?

Is it possible to send multiple types of auto emails such as MHTML and PDF? I only see 1 option to select from so i was just wondering. Since our SSRS server is internally hosted the person being emailed can not go to the report directly to download their preference.
If you have enterprise version, then you can use Data driven subscription and have a single subscription deliver in whatever format you want it to.
You don't need multiple subscriptions

How to introduce a report subscription through report deployment? SSRS 2008 subscription

I want to be able to deploy a report and this deploy should take care of the an email subscription and set the report run schedule; I shouldn't have to manually create a subscription later on and if a new subscription is to be applied, I should be able to update the subscription with report deploy only. If somebody could provide a generic subscription element template to copy and paste in the rdl file, will be a great help.
Subscriptions are not part of the RDL file.
There is no way you can do what you want if you want it to deploy using right-click:deploy.
If you are using some automated process for deployment (rs.exe, SSRS webservice etc), you can set up subscriptions, but it would be a lot of work
From everything I have found, I do not see how you can create a subscription. I have found a lot on altering an existing subscription though:
https://msdn.microsoft.com/en-us/library/dn747196.aspx#bkmk_how_to
No instruction of rCREATING via PS, only mods:
https://msdn.microsoft.com/en-us/library/ms156307(v=sql.130).aspx
you may be able to create the subscription ion a STAGE environment then transfer it to Prod as part of your post deployment

Birt: Store user stay time on reports and visit counts to database

I have deployed birtviewer on tomcat 7. I am using tomcat form based authentication to control users access to the reports. Currently I have come up with a requirement to store to mysql database the user visits counts and the time he spends on each birt report
I have done seme research on how to extract total session time from session variable but the problems I am facing are below
1) A session starts as soon as a user logs in. How do I collect the session info for the subsequent reports? For example I have some bunch of reports that are connected to a main report. If a user logs in, he is taken to the main page. After that, the user is not required to log in to the next reports that user visits. If the user visits other reports, how do I collect the information about the time that user spends on each report?
2) I would also like to collect the visit counts that a user makes to each report? How can I collect this info?
3) How can I send this info from birt reports to the database?
Please let me know if you have any questions or need more explanation. I have googled and could gather information about how to extract info from session variable but I could get any info on how to do it for each birt report separately (even though all the reports user the same session info)
Regards
Arif
you could write a ServletFiler in Java and add the packed jar to the WEB-INF\lib folder of your BIRT Viewer and configure the Filter mapping in the WEB-INF\web.xml of your viewer, so it is triggered every time you call an URL of the BIRT Viewer.
Insider your filter you can read the session time and save the timestamp and a click counter to your database. You can calculate the visited time by substracting it from the next saved timestamp identified by the session ID.