powerbi

Power BI and JSON data

流过昼夜 提交于 2020-01-03 17:18:13
问题 Is it possible to make Power BI read JSON data? I've spent an entire day yesterday to figure out how to convert the JSON data into a readable table in Power Bi, but with no luck. I tried googling for hours, but there is no proper documentation anywhere. I'm retrieving a JSON payload from my website and when I try to import, it shows the data like this: Record Record Record Record Maybe there are any tutorials I can follow? Or perhaps another alternative to Power BI that would properly read

Create 6 months rolling average on week filter

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-03 06:32:11
问题 I am trying to create a report, which should give weekly data but also a column for rolling 6 months till the last month and the same period last year. I am able to calculate the rolling average using the formula below: 6 months rolling = VAR period_end = CALCULATE( MAX('Dimensions'[Month Start Date]), FILTER( ALL('Dimensions'[Year Week]), 'Dimensions'[Year Week]=SELECTEDVALUE('Dimensions'[Year Week]) ) ) VAR period_till = FIRSTDATE( DATESINPERIOD( 'Dimensions'[Month Start Date], period_end,

how to decode/ get encoding of file (Power BI desktop file)

久未见 提交于 2020-01-03 04:34:12
问题 I am having power BI desktop report(pbix) internal file (DataMashup), which i am trying to decode. My Aim is to create Power-BI desktop report, Data Model using any programming language. I am using Java for initial. files are encoded with some encoding technique. I tried to get encoding of file and it is returning windows 1254. but decoding is not happening. File f = new File("example.txt"); String[] charsetsToBeTested = {"UTF-8", "windows-1254", "ISO-8859-7"}; CharsetDetector cd = new

Including Re-occurring Time Saved in Date Slicer Output

妖精的绣舞 提交于 2020-01-03 03:47:09
问题 I am looking into utilising PowerBI to identify time saved due to various Projects. People will add the projects to a Sharepoint List which then feeds into PowerBI. PROJECTs Table: Project Tite, Desc, Hours/Month Saved, StartDate, EndDate, Repeat? (T/F) [Some Projects only save a fixed 10 or so hours, others save time per month (indicated by the Repeat Column)] I've created two measures, RUNTIME determining how long the project has run in months ((TodayDate - StartDate)/30) as well as

How to create a tabular report from Azure DevOps that includes work item description?

六月ゝ 毕业季﹏ 提交于 2020-01-03 03:20:10
问题 We are trying to use PowerBi to build tabular reports from data in Azure DevOps. In this report, we want to display the description field in one of the table's columns. ADO stores the description as HTML. Neither PowerBI or Excel can render this content, but instead show the markup code. I've also looked at pulling this into python and using Dash with no luck. There is an extension for ADO that renders html, but it displays a single record and doesn't work as a table cell renderer. The output

Creating a custom visual for PowerBI in NodeJS - "Cannot find name 'IVisualHost'

蹲街弑〆低调 提交于 2020-01-02 18:47:30
问题 I'm trying to follow this tutorial on creating a custom visual for Power BI : https://docs.microsoft.com/en-us/power-bi/developer/custom-visual-develop-tutorial The test with the default code works properly when I connect to Power BI Cloud, as shown in the part"Testing the custom visual" step 8, of the tutorial. The problem is when I try to add the class-level properties in the visual.ts file (after I deleted the code as indicated in the part "Developing the visual elements" step 2 of the

Overcome the export limit of 150k rows from Power BI

只谈情不闲聊 提交于 2020-01-01 19:43:15
问题 Is there a way to overcome Power BI export limit of max 150k rows? Limit docs: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-export-data#limitations-and-considerations Voting for PBI improvement: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/18432742-increase-export-data-limits 回答1: Ok, I got through with that. It is possible. You should be familiar with R and SQL Server to do that. The example below exports 201k rows directly form PBI to SQL

How to authorize in Azure Active Directory without using dialog?

為{幸葍}努か 提交于 2019-12-31 04:01:17
问题 My application shows dashboard of my power bi account for all users, I am authorizing the Azure Active Directory through a dialog to get an access token. Can I hard code my credentials and get access token without using the authorization dialog. Code. It works but it is using the authorization dialog. var @params = new NameValueCollection { {"response_type", "code"}, {"client_id", Properties.Settings.Default.ClientID}, {"resource", "https://analysis.windows.net/powerbi/api"}, {"redirect_uri",

Select row with MAX value per category Power BI

天涯浪子 提交于 2019-12-30 20:01:17
问题 How to select row with max value per category in M of Power BI. Suppose we have table: +----------+-------+------------+ | Category | Value | Date | +----------+-------+------------+ | apples | 1 | 2018-07-01 | | apples | 2 | 2018-07-02 | | apples | 3 | 2018-07-03 | | bananas | 7 | 2018-07-04 | | bananas | 8 | 2018-07-05 | | bananas | 9 | 2018-07-06 | +----------+-------+------------+ Desired results are: +----------+-------+------------+ | Category | Value | Date | +----------+-------+------

How to save result of R script in Power BI

こ雲淡風輕ζ 提交于 2019-12-30 11:08:50
问题 Is it possible to implement the following scenario in Power BI Desktop? Load data from Excel file to several tables Make calculation with R script from several data sources Store results of calculation to new table in Power BI (.pbix) The idea is to use Power BI Desktop for solving "transportation problem" with linear programming in R. Before solver will be running we need to make data transformations from several data sources. I'm new in Power BI. I see that it is possible to apply R scripts