Power BI Web Service - Comma's and cards - powerbi

I'm having trouble with Power BI Web Service.
I designed some cards on Power BI Desktop :
But when I publish it to my web workspace Power BI Web Service won't read numbers with commas or points correctly.
I have tried the "data type" option and "Change type with local" option on edit query but none of these seem to work.
also, Power BI service is deleting some "data labels" and "totals" on my graphics that are showing ok on desktop.
Any idea what is going on?

This is likely related to the localization settings in the service.
One option is to explicitly format your measures using FORMAT rather than relying on Power BI to make its best guess.
For example,
Porcentaje = FORMAT ( ..., "0.0%" )

Related

I have a power bi desktop connected with sql database and have some reports in it

I have a power bi desktop connected with SQL database and have some reports in it.
Now I want to generate following things
Every time user enter the name of the database my reports gets automatically refresh and exported in PDF or excel.
If possible I have browser where user can enter the SQL database name and UI pop up and end user can see the power BI dashboard where all reports automatically refreshed as per the user input SQL database name.
Thanks in advance!
For ask 1:
Refer Create and use R visuals in Power BI Once R is installed, open the Run R Script and paste the below R script, depending on your destination and save it.
Example as a excel file: write.xlsx(dataset, file = "C:/dataset.xlsx")
If you are interested in (PDF) and know Microsoft Power Platform, use On Power BI button clicked trigger followed with Export To File for Power BI Reports actions API to export a PDF to your local directory. Demo screenshot
For ask 2:
You can check Embed a report in a secure portal or website to easily embed reports in internal web portals and utilize Automatic page refresh in the Power BI service to set automatic page refresh for reports as long as the data source is DirectQuery.
Power BI Desktop has no restrictions for refresh intervals and can be as frequent as every second. But when reports are published to the Power BI service, certain restrictions apply.
Alternately you can use Datasets Power BI REST APIs - to trigger a refresh for the specified dataset from "My Workspace".
POST https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes
You can also leverage Q&A for Power BI business users the fastest way to get an answer from your data by asking a question using natural language.

Power BI as a tool for Excel report preparation?

I want to know if I can use Power BI to create reports in Excel? I want a well formatted report we present before clients.
Clients provide us data in SQL. I use statistical analysis tools. The analysed numbers are in SQL again. I have Power BI on my laptop. I want to know if I can build any process where I can create excel reports from the SQL server numbers?
I do use PBI for creating charts and graphs which I later manually paste in excel reports. But have no idea if complete report making is possible.
Can anyone elaborate??
Thanks!!
Power BI is (mostly) the combination of two Excel plugins, Power Query (Get data from Excel 2016 onwards) and Power Pivot. The visual/report layer is an advanced version of Power View in Excel.
You have two options. First you can use Excel to have the Power BI experience in getting and connecting the data together. For this method you will use the Power Query (M) and Power Pivot (DAX) parts, these are the same as getting data and using the relationship designer in Power BI. If you are currently copying and pasting visuals from Power BI into Excel, then this method would be the best way. You may want to create your visuals in Excel, and format them to a Power BI look and feel.
The second option is to create the dataset in Power BI, getting and transforming the data, then publishing it to the service. You can then use 'Analyze in Excel' to connect Excel to the dataset and surface the data in Excel.
I would recommend not copy and pasting visuals from Power BI to Excel as you lose the benefits of Power BI's interactivity, just use the normal charts, slicers and other tools in Excel. By using the first option, you are keeping the workflow in one application without any convoluted steps back and forth, and anything you learn and use in Power Query and Power Pivot you can use in Power BI.

Conversational Analytics using Power BI & Cortana

We want to develop Cortana skills such that when asked a question it queries the dataset in Power BI and returns an answer in speech. For example, the user asks Cortana, "Which customer had the highest default rate last week?" Cortana queries the dataset in Power BI and answers, "John Doe". How can we use Cortana skills and Power BI to build a solution which satisfies this requirement? or any ideas maybe using Azure Bot Services, Application insights... with Cortana?
Thanks
This would be a cool example! And it is definitely do-able. There is no current example
on bot service samples.
There are a couple ways you could approach it. You could use Power BI app deep links, where the Cortana skill maps speech to a known dashboard or report, or you could build a model that ties right in to Power BI data.
For the latter, you'd need to create a bot and add the Cortana channel. Inside your bot, you'd need to get an access token and pass it off to Power BI's REST API to get whatever you need. I believe you could use Cortana's Connected Services to do this. Check out connected services, how Graph oauth works and getting access tokens. Then check out using Power BI for develoers to see what API to use (get dashboard, report, dataset, etc.) You'd rip whatever result you're looking for and add it as the speak property on the message you send back to the user.
For the former, you wouldn't get a speech result, but you could drill down into the report. Check out Power BI apps's deep linking capability and how to deep link from Cortana.

Why OData api called multiple times in power bi desktop

I have a Power BI Desktop application that accesses one Data Source which is an OData feed. When refreshing the data in Power BI Desktop it takes much longer . After clicking on Refresh in the popup it shows "Evaluating" and "Loading 2 KB..." for a very long time. From logs of OData API,I can see that the OData feed is called twice and each request is taking same amount of time.
Why does Power BI desktop call the OData feed multiple times? Is there a way to reduce the number of calls?
Note:
I have gone through Referenced Queries And Caching In Power BI And
Power Query Blog But in my case my not using any transformation.
Just loading OData feed.
I have gone through the post for same
issue at Power BI community and try the suggested approach but
still issue persists.
Case is similar to "why-is-power-bi-running-my-sql-query-twice"
https://blog.crossjoin.co.uk/2020/07/05/why-is-power-bi-running-my-sql-query-twice/
Power BI wants to know the schema of the table before the query actually runs, so it asks Power Query to return the top 0 rows. Probably its also true for OData.
Using M function Table.View should help.
https://blog.crossjoin.co.uk/2020/05/14/speed-up-data-refresh-performance-in-power-bi-desktop-using-table-view/

Connect Power BI Desktop to insightly

It doesn't seem possible to connect Power BI Desktop to Insightly although there's a content pack for Power BI Service.
Is there a workaround, if we need to build a data model and/or add calculated measures? E.g. use the content pack for the service and then connect Desktop to Power BI service?
Or any better suggestion? Thank you for helping with this!
You could always connect by finding the URL being passed in the Power BI service and use that as a Web data source from Power BI desktop. That way you'd be able to create your data model.
There are additional details here which guide you through the insightly portal.
https://learn.microsoft.com/en-us/power-bi/service-connect-to-insightly
There is a section within the above named "Finding Parameters" here it goes through how you can access the insightly portal. Additionally there is information around how to access the insightly API. Please note there is daily limit on the number of calls to this API.
select User Settings from the Insightly profile menu and scroll down.
This string of characters will be used to connect your data to Power BI.
Insightly API documentation can be found here:
https://api.insight.ly/v2.2/Help#!/Overview/Introduction#ratelimit
An example of an API call using the Power BI Web data source is as follows:
https://api.insight.ly/v2.2/Contacts
Using the key which can be found under the "Finding Parameters" tab you're able to populate the below: