powerbi

Power Query Child hierarcy

不想你离开。 提交于 2019-12-24 23:45:01
问题 I have a problem I need to solve in power query. I have table containing columns Name, ID and Parent ID Name ID Parent A 1 B 2 1 C 3 1 D 4 2 E 5 2 I need to transform this table so that I get one row for each child (and orginal) that row has. In this example this would yield 11 rows. Name ID A 1 A 2 A 3 A 4 A 5 B 2 B 4 B 5 C 3 etc. I know this is done with some sort of joining but it feels like a loop and I don't know how to do loops in Power Query. 回答1: A friendly reddit user created

Conditional calculation based on another column

天大地大妈咪最大 提交于 2019-12-24 23:30:11
问题 I have a cross reference table and another table with the list of "Items" I connect "PKG" to "Item" as "PKG" has distinct values. Example: **Cross table** **Item table** Bulk PKG Item Value A D A 2 A E B 1 B F C 4 C G D 5 E 8 F 3 G 1 After connecting the 2 above tables by PKG and ITEM i get the following result Item Value Bulk PKG A 2 B 1 C 4 D 5 A D E 8 A E F 3 B F G 1 C G As you can see nothing shows up for the first 3 values since it is connected by pkg and those are "Bulk" values. I am

Refresh Power BI dataset connected to Scopus database

蓝咒 提交于 2019-12-24 20:15:20
问题 I prepared a scientometric dashboard using Power BI which is connected directly to Scopus database by calling API keys. On my Power Bi desktop it can refresh data without any error but after publishing the dashboard to power bi website it can not be refreshed and returns a credential error: Last refresh failed: Wed Nov 27 2019 12:32:39 GMT+0330 (Iran Standard Time) There was an error when processing the data in the dataset.Hide details Message: The credentials provided for the Web source are

How to load file to Excel Power query from SFTP site

扶醉桌前 提交于 2019-12-24 20:12:05
问题 Can anyone please help me on this? I am trying to load a file to Excel Power Query from the SFTP site and I don't see any option. Following are the sample WINSCP SFTP site credentials: File Protocol: SFTP Host Name: ftp.test.com Port Number: 22 Username: Test1 Password: XXXX As shown in the below code snippet, I can load it from my local C drive, but Can you let me know how I can load it from SFTP drive site? let Source = Csv.Document(File.Contents("C:\Users\Documents\Winscp\acct_dept.dat"),

Value column counts or Summarizes even if I checked “Dont Summarize” Power BI Desktop

一世执手 提交于 2019-12-24 18:44:55
问题 The goal is to create a visual that shows Budget vs Premium for each month in a year; Something like that: I established relationship between Premiums table and Divisions table. It didnt give me any error, so I'm assuming everything is fine. On a chart I need SUM of premium but NOT SUM of Budget. But when I put Budget on a column chart it summarizes it. I checked "Do not summarize" but it still, either summarize either count value. Premium value summarized which is fine, that is what I need.

About Powerbi Embedded Reports Scheduled Refresh

橙三吉。 提交于 2019-12-24 18:41:23
问题 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

Edit python script used as Data entry in Power BI

六月ゝ 毕业季﹏ 提交于 2019-12-24 17:52:50
问题 I have a python script and used it to create a dataframe in Power BI. Now I want to edit that dataframe in Power BI but don´t enter from scratch as new data because I want to keep all the charts inside my Power BI model. For example in my old dataframe i specified some dates inside my script so the information was limited to those dates. Now i want to change the dates to new ones but dont want to lose all the model. df = df 回答1: I hope you're not dong this in a PowerBI Python Visual. If you

Edit python script used as Data entry in Power BI

佐手、 提交于 2019-12-24 17:51:33
问题 I have a python script and used it to create a dataframe in Power BI. Now I want to edit that dataframe in Power BI but don´t enter from scratch as new data because I want to keep all the charts inside my Power BI model. For example in my old dataframe i specified some dates inside my script so the information was limited to those dates. Now i want to change the dates to new ones but dont want to lose all the model. df = df 回答1: I hope you're not dong this in a PowerBI Python Visual. If you

DAX equivalent of Excel PERCENTRANK.INC per category

╄→尐↘猪︶ㄣ 提交于 2019-12-24 17:46:34
问题 I would like to calculate in DAX equivalent of Excel function PERCENTRANK.INC but per Category. I admit that I do not know even how to calculate it for Category. Any hints will be highly appreciated. Here is M code for sample data: let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcisqzSwpVtJRSiwoyEkF0oZKsTpIwkmJeUAIZJigipfn56QlpRYVVQLZpqhSyRlQcWOweFhqempJYlJOKlgusagovwTIMMKUK8gvSSzJhzsBRS4/LzM/D0ibo1qFw9HILogFAA==", BinaryEncoding.Base64), Compression.Deflate))

DAX RANKX for within Category

孤人 提交于 2019-12-24 17:46:15
问题 How to calculate ranking for within Category? Say we have sample data with the following expected results: let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcisqzSwpVtJRSiwoyEkF0oZgHKuDJJWUmAeEQIYJEBuhypXn56QlpRYVVQLZpkBsjCqdnAGVMwNrB8mFpaanliQm5aSC5AvySxJL8lGsRZFPTiwqyi8BWwuzGkU+Py8zPw9Im0OsjgUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Category = _t, Subcategory = _t, Sales = _t,