powerbi-desktop

How to merge queries in power bi with 2 primary keys

你说的曾经没有我的故事 提交于 2020-06-28 05:07:42
问题 How do we merge two queries in power bi when the primary key is a combination of 2 columns. for example i have 2 tables Table A : year cost center col a col b col c Table B: year cost center col x col y col z The primary key in both the columns is a combination of the 1st two columns. How do i merge these two queries? 回答1: When you merge the queries using the GUI, you can hold down Ctrl to select multiple columns from each table. (Make sure you select them in the same order on both tables.)

How can i preserve old data in powerbi?

落花浮王杯 提交于 2020-06-17 14:20:26
问题 I'm using web api to import data into powerbi. After every refresh, old data is replaced by new data of web api so my question is how can I store that old data in power bi ? 回答1: Power BI will not store data, unless you have a query source that will support incremental refresh. https://docs.microsoft.com/en-us/power-bi/admin/service-premium-incremental-refresh It would be best to use a tool like Azure Function, Azure Logic Apps or Power Automate to get the data and save it as file to a folder

Remove duplicates values based on multiple column with a condition in query editor Power BI

筅森魡賤 提交于 2020-06-15 23:46:27
问题 I am new to power bi and would require your help to sort out below issue which I am facing. Basically I am taking three columns into consideration as below: Question: I would like to remove duplicate values from above table based on conditon " Equal value for "Time" ,"ID" and Absolute difference in "Time spent" is lower or equal than 1" as you can see in the image Rows highlighted falls in this category. I would like to get these below rows removed based upon condition. Question: I would like

Remove duplicates values based on multiple column with a condition in query editor Power BI

北城余情 提交于 2020-06-15 23:45:52
问题 I am new to power bi and would require your help to sort out below issue which I am facing. Basically I am taking three columns into consideration as below: Question: I would like to remove duplicate values from above table based on conditon " Equal value for "Time" ,"ID" and Absolute difference in "Time spent" is lower or equal than 1" as you can see in the image Rows highlighted falls in this category. I would like to get these below rows removed based upon condition. Question: I would like

How to perform sum of previous cells of same column in PowerBI

徘徊边缘 提交于 2020-06-13 06:12:47
问题 I am trying to replicate Excel formula to PowerBI.Which is Is There any DAX to perform this calculation((1-0.2)*B2+0.2*C2). Thanks. 回答1: There no inherent way to do relative row reference in DAX, so you need to explicitly tell it which row to reference. CalculatedColumn = VAR PrevDate = MAXX ( FILTER ( Table1, Table1[Date] < EARLIER ( Table1[Date] ) ), Table1[Date] ) VAR B = LOOKUPVALUE ( Table1[B], Table1[Date], PrevDate ) VAR C = LOOKUPVALUE ( Table1[C], Table1[Date], PrevDate ) RETURN ( 1

wrong values with customized double header in matrix

笑着哭i 提交于 2020-06-07 07:23:48
问题 I use a custom calculated table for the header which was an answer of a my previous question: https://stackoverflow.com/a/61469905/5950313 The measure AN is calculated within the following script: The goal of the dimensionmeasure is to calculate the count of rows from fact_an cumul of 12 months where Fact_AN[Vitesse_Transf_Mois]<= SELECTEDVALUE(Dim_VieillissementAN[ID_Tranche]) AN = VAR a = SELECTEDVALUE(Dim_DateFicheAgent[ID_DateFicheAgent]) VAR b =SELECTEDVALUE('Seniority banking'[banking

How to manage “Load was cancelled by an error in loading a previous table” in Power BI?

孤者浪人 提交于 2020-05-17 08:49:39
问题 I'm facing major issue in power bi when no data found on earlier data available web resource. Due to this issue I'm not able to apply change in dashboard and advanced editor derived steps throwing an error. Load was cancelled by an error in loading a previous table How to resolve the same by creating static tables headers when no data found on resource 回答1: You need to add a dummy table with your headers and some dummy info your power query statement. If the data sources doesn't exist then it