powerbi

How does one redistribute a calculated total across a range of dates in Power BI?

耗尽温柔 提交于 2021-01-29 07:07:19
问题 My firm is trying to forecast what the business landscape will look like after the current resource shortages (mainly labor, in our instance) return to normal. To that end, I have made a report that I want to use to show how our business forecasting needs to change relative to the length of time that we are accumulating backlogged orders that we cannot fill. In the image you can see the original projection forecast one both the line graph and the table. Forecast 2020 = CALCULATE(SUM(Orders[+5

Showing average percentage for whole department and average percentage for individual on line chart

老子叫甜甜 提交于 2021-01-29 06:18:23
问题 I want to display the average percentage for all 'excellent' case outcomes over the 12 month period for all colleagues on a line chart. I want this line to be unaffected by the colleague name filter on the visual. This is some sample data from the 'case' table: This is the measure I have so far: Excellent Fixed = CALCULATE( COUNTROWS('Case'), FILTER('Case', 'Case'[Case Outcome]="Excellent"), ALLEXCEPT('Case', 'Case'[Date].[Month])) / CALCULATE( COUNTROWS('Case'), ALLEXCEPT('Case', 'Case'[Date

Trying to implement a r script within power bi to update a SQL Server database

依然范特西╮ 提交于 2021-01-29 05:47:59
问题 I'm trying to implement a r script within power bi to update a SQL Server database. I keep running into this problem... anyone know how I can resolve the error? library(RODBC) outputframe=data.frame(dataset) DBHANDLE<-odbcDriverConnect('driver={SQL Server};server=____;database=___;trusted_connection=true') TBLExist="sbs.Iterations" %in% sqlTables(DBHANDLE)$TABLE_NAME if (!TBLExist) sqlSave(DBHANDLE, data.frame(dataset), tablename = "sbs.Iterations",rownames=FALSE, append = FALSE) DataSource

How to display top 3 highest amount info for a record from a table?

天涯浪子 提交于 2021-01-29 04:43:41
问题 For one of the tables imported into the PowerBI, I have columns as Company Name, Debit Amount, Credit Amount and Net Amount (Calculated column: Debit Amount- Credit Amount). Now is it possible to pull the three highest Company Names from the table in terms of having either higher Debit, Credit or Net Amount and display it on a tile? May be by creating a measure using DAX or OOTB? It should look like: Top Grossing Second Grossing Third Grossing 12000(Net Amount) 10000(Net Amount) 5000 (Net

Query from PowerBI to AI suddenly fails with (502): Bad Gateway

人盡茶涼 提交于 2021-01-29 03:16:49
问题 In Power BI (Desktop) we use a Power BI Query (M) to get data from Application Insights Analytics. We published the Power BI Report to Power BI online configured with a daily refresh. It worked fine until it stopped working on 25-1-2017 (UTC). The error we get is: DataSource.Error: Web.Contents failed to get contents from '.....' (502): Bad Gateway This is the complete error: DataSource.Error: Web.Contents failed to get contents from 'https://management.azure.com/subscriptions/<subscriptionId

Power BI Measure to calculate percentage which changes with filters

ぃ、小莉子 提交于 2021-01-29 03:12:44
问题 I want to create a visualisation from a dataset which shows percentages that change accordingly when filters are used. I have a dataset like the below but with over 1 million rows of data covering 18 months. All the fields are text except Month which is a date and SUMofAPPTS which is numerical. SUPP GEOG1 MODE STATUS TYPE TIME Month Day SUMofAPPTS AA 00D Face Att 1 1 Day 2018-06 Sun 12 AA 00D Face Att 1 1 Day 2018-06 Mon 119 AA 00D Face Att 1 4 Unk 2018-06 Tues 98 BB 00D Tel DNA 2 1 Day 2018

Cumulative sum on different columns grouped by date and filtered differently

点点圈 提交于 2021-01-29 02:35:46
问题 I would like to create three cumulative sum columns based on three different column. Each cumulative sum must be calculated as follows: should be grouped by the same date in the dte column column A should be filtered ASC before cumulative sum operation is done column B & C should be filtered DESC before cumulative sum operation. Should I create new tables with columns A, B, C separated from each other? +-----------+----+----------+---+----+-----+----------+----------+----------+ | dte | id |

Subtotal <> sum of the rows

做~自己de王妃 提交于 2021-01-28 11:17:40
问题 I'm a relative neophyte with DAX so bear with me. In the simplest terms, I want to double the measure amount for all regions that are not Europe, then sum the result. Here is some example DAX: DEFINE measure Fact[test] = CALCULATE (IF(SELECTEDVALUE('Dim'[Region]) = "Europe", Fact[Revenue],Fact[Revenue] * 2)) EVALUATE( SUMMARIZECOLUMNS( ROLLUPADDISSUBTOTAL('Dim'[Region], "RegionSubtotal"), "Original Measure", Fact[Revenue], "New Measure", Fact[test] ) ) Region RegionSubtotal Original Measure

Error with authentication in e2e tests using cypress: chrome-error://chromewebdata

偶尔善良 提交于 2021-01-28 09:28:27
问题 I'm using cypress for writing E2E tests for my UI (Note that it's a PowerBI report, hence it's kind of special case). When I am testing with a public report, it works fine. But when it's a private PBI report, I am having trouble with login part. After some research, I found this approach promising for Azure AD based auth, and added this login function in my commands.js file: Cypress.Commands.add('login', () => { cy.request({ method: 'POST', url: 'https://login.microsoftonline.com/{TENANT}

Create Report in Embed View via PowerBI API

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 07:55:47
问题 I am trying to create a new report from a dataset in an embedded view. However, I keep getting "This content isn't available" and the reportEmbed.min.js returning a 403 on render. Within app.powerbi.com I can successfully create and save reports, but as mentioned above the embedded view is not working. I am following this documentation exactly: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Create-Report-in-Embed-View However, I am generating my embed token via a Power BI API call as