powerbi

What headers am I missing to scrape the NBA Stats data?

不羁的心 提交于 2020-02-03 02:14:10
问题 A couple of days ago in Power BI, I was able to create a web query that allowed me to extract the JSON data from NBA Player Stats without using any headers. As of today, I have noticed that the query no longer works; I am getting the following error message: DataSource.Error: The underlying connection was closed. An unexpected error occurred on a receive. Details: https://stats.nba.com/stats/leaguedashplayerstats?College=&Conference=&Country=&DateFrom=&DateTo=&Division=&DraftPick=&DraftYear=

How to set filters in reports power BI embedded javascript

烈酒焚心 提交于 2020-01-30 12:04:39
问题 I want to add somes filters on my reports power bi embedded, i have an html file, and i need to add somes filters in javascript but i dont have experience as a developer. I just need to see an exemple to see how to add it. <head> `enter code here` <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>test</title> <script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-1.12

Programmatically Deploying Power BI Reports to Power BI Report Server and change Connection String

感情迁移 提交于 2020-01-30 04:59:13
问题 Is there any method to deploy Power BI reports to Power BI Report Server without having to manually copy these files, upload them to the server and finally change the data source connectivity information for each report on a report by report basis which is not practical in each customer sites. Eg. PowerBI Report File - 'Report_1' need to Deploy on Customer server S1, S2, S3, & so on. Now we doing manually copy these files, upload them to the server and finally change the data source

Many to Many Relationship BY DATE in PowerBI

一个人想着一个人 提交于 2020-01-26 03:59:25
问题 I need to be able to calculate a measure in a table of many to many relationship. Here are my two tables: Contracts Table Serial# ContractTyp StartDate EndDate A MP 1/1/2017 1/6/2018 B ML 10/24/2017 6/30/2020 A ML 1/6/2018 12/30/2019 C MU 5/15/2018 1/1/2021 Performance Table Serial# Diff Good Bad Date A 15 1 0 1/30/2017 B -24 1 0 12/17/2017 A 57 0 1 4/22/2017 A 18 1 0 2/1/2018 C 123 0 1 9/12/2018 So, my measure is simple. It just calculates the percentage of Good by Serial#. NUM_GOOD =

Power BI: How to use OR between 2 different filters?

瘦欲@ 提交于 2020-01-25 08:16:28
问题 I have some table like this: +------+------+------+ | Lvl1 | Lvl2 | Lvl3 | +------+------+------+ | A1 | B1 | C1 | | A1 | B1 | C2 | | A1 | B2 | C3 | | A2 | B3 | C4 | | A2 | B3 | C5 | | A2 | B4 | C6 | | A3 | B5 | C7 | +------+------+------+ In which it is some thing like a hierarchy. When user select A1, he actually selects the first 3 rows, B1, selects first 2 rows, and C1, selects only the first row. That is A is the highest level, and C is the lowest. Note that ids from different levels are

Calculating % by Dividing Filtered Matrix Columns from Tables Related on 2 Attributes in MS Power BI

只愿长相守 提交于 2020-01-25 06:40:24
问题 This question is related to a simpler problem, posted here: Calculating % by Dividing Filtered Matrix Columns in MS Power BI Given : There are 2 (or more) attributes (e.g. 'Date' and 'Location') rather than just 1 (e.g. 'Date'), on which the tables have to be connected. In this case, both tables have to be filtered by date, as well as location, as in the following example: Table 4: Date_1 Location_1 Numerator 01-Jan-19 NY 5 05-Feb-19 CA 4 04-Apr-19 WA 1 07-May-19 OR 3 11-Jun-19 ND 5 22-Jun-19

The value parameter in DAX function RANKX

萝らか妹 提交于 2020-01-24 21:04:30
问题 Can you explain what is the job of the value parameter in function RANKX? I could not figure out from documentation what it is for:-) RANKX(<table>, <expression>[, <value>[, <order>[, <ties>]]]) Possibly, if you could submit an example how it works. 回答1: Let´s say I have to tables. Withhin this tables I can rank the games by their rating. Like this: I have a rank for the left table Rank Switch = RANKX(ALLSELECTED('Switch'[Game]); CALCULATE(SUM('Switch'[Rating]))) and one for the right table:

Power BI. Matrix two columns under on column

一曲冷凌霜 提交于 2020-01-24 19:24:26
问题 This is the desired layout of the matrix that I need. I need to have two columns under one column: However, I ended up with this(I used different values, so the values might be slightly different.): With the following columns in the matrix fields: This is a sample of the dataset. Total Units sum up columns A and B. The Order column sorts the Status column: STATUS A B Total Units Order ABC 3 0 3 1 DEF 0 6 6 2 ABC 3 2 5 1 ABC 5 6 11 1 GHI 0 4 4 3 ABC 5 3 8 1 DEF 0 9 9 2 How do I get my desired

PowerBI Query WebMethod.Post returns Expression.Error: We cannot convert the value “POST” to type Function

冷暖自知 提交于 2020-01-24 00:37:06
问题 I'm using a website that requires that their API key AND query data be submitted using Webform.Post method. I'm able to get this to work in Python, C# and I'm even able to construct and execute a cURL command which returns a usable JSON file that Excel can parse. I am also using Postman to validate my parameters and everything looks good using all these methods. However, my goal is to build a query form that I can use within Excel but I can't get past this query syntax in PowerBi Query. For

DAX expression for COUNT of GROUPBY

老子叫甜甜 提交于 2020-01-23 09:51:54
问题 I am new to PowerBI and writing DAX expressions. I have a table with a text column with different values.All I want to do is get the count for each distinct value. It's easily achieved with this SQL but I can't get the right DAX expression for it. select [value],count(*) as TagCount from Tags group by [value] order by TagCount desc Any help? 回答1: You can do something similar in Power BI as follows: SUMMARIZE(Tags, Tags[value], "TagCount", COUNT(Tags[value])) or SUMMARIZECOLUMNS(Tags[value],