powerbi

sorting stack bar chart in power BI

落花浮王杯 提交于 2019-12-13 01:48:07
问题 I am using a stacked bar chart for presenting the gender ratio in various region. here the legend is gender and Axis is region and value is headcount. when i want to sort the chart according to female gender value . the sorting is only done by the headcount value. how can i sort it for the percentage value. please help me. 回答1: EDIT: My first answer focused only on count, now I've taken into account that OP wants to sort by percentage female value You can sort your data directly in your

unauthorized error 401 for power reports embedding

旧巷老猫 提交于 2019-12-13 01:28:05
问题 I am trying to Embedding my Power Bi Reports in my MVC application using the following link https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers and i am able to get the access_token but unable to retrieve the dashboards or reports based on Group Id because of 401 Unauthorized error. Let me know what I am doing wrong. 回答1: I faced the exact same issue during my Power BI Embedded implementation. The issue in my case was that adequate Permission were not granted for

How to edit Power BI Desktop document parameters or data sources programmatically with C#?

你。 提交于 2019-12-13 00:31:45
问题 I have a report template which is built in Power BI Desktop and is saved as .pbix or .pbit file. This template uses DirectQuery SQL database as data source, whereas server address and database name are extracted to parameters. There is also a parameter which holds a ReportId , which is used in queries. I also have a C# application, which is supposed to generate Power BI Desktop reports from this template. How can create a report with specific parameters programmatically? Something like Power

uncomment it to see your plugin in “powerbivisualsplayground” plugins

冷暖自知 提交于 2019-12-12 20:51:29
问题 How Can i see my plugin in "PowerBIVisualsPlayground" plugins list ! So when i create a iVisual it created some default code where on the plugin list it says uncomment it to see your plugin in "powerbivisualsplayground" plugins So i followed it and uncomment the code --- i have created a IVisual i the PowerBI visual --- /* creating ivisualplugin that is used to represent ivisual. */ //uncomment it to see your plugin in "powerbivisualsplayground" plugins list //remember to finally move it to

How do I filter results by a measure in Power BI

自闭症网瘾萝莉.ら 提交于 2019-12-12 18:44:28
问题 I need to be able to filter by a measure to show more granular results in Power BI. I would like to be able to choose where the percentage is in a range, or = 100% My calculation for the measure is this (each column can only be 1 or 0): errorPercentage = CALCULATE(SUM([missing data])/SUM([expected])) This works fine in the table and correctly shows the percentage which can be cut in many different ways. However, when adding a filter element/visual, Power BI wont let me use the errorPercentage

Manually Creating an OData feed in Asp.Net Core, Using feed in Power BI

ⅰ亾dé卋堺 提交于 2019-12-12 18:23:28
问题 I am trying to manually write a Web Api that will serve as an OData feed. I don't need much functionality, just the ability to export data stored within Entity framework to an application such as Power BI. I only need to be able to view, so I was planning on just implementing GET requests. I currently have a standard web api that returns back properly formatted JSON, but I am having trouble formatting this into something that I can import into Power BI as an OData Feed. Here's a gist of what

Power BI Rolling Average DAX to plot correctly on Column Chart

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 14:49:43
问题 I have a problem with the measure of the 3mth rolling average to visualise it correctly on the graph. The data model is here: https://docs.google.com/spreadsheets/d/1naChcuZtjSbk0pVEi1xKuTZhSY7Rpabc0OCbmxowQME/edit?usp=sharing I am using the formula below to calculate 3mth average through a measure: Product3Mth = CALCULATE(SUM('Table'[Product A uncum]);DATESINPERIOD('Table'[Date];LASTDATE('Table'[Date]);-3;MONTH))/3 When I am plotting it as a table it is showing right values for each month.

How to fill out blanks in Running Total matrix Power BI

前提是你 提交于 2019-12-12 14:30:26
问题 I am working on Loss Triangle in Power BI where AccidentYear are rows and DevYear are columns. The values in the table are Running Total created by measure: Running Total Loss = CALCULATE( SUM(fact_Losses[PaymentAmount]), FILTER(ALL(fact_Losses[DevYear]),fact_Losses[DevYear]<=MAX(fact_Losses[DevYear])) ) Link to get Raw data: https://www.dropbox.com/s/dvb6cu1k4vmzkur/ClaimsLloysddd.xlsx?dl=0 Running Total Cumulative Data looks like this: AccidentYear DevYear Running Total Loss 2012 12 164714

Visualizing last refresh date in power bi

。_饼干妹妹 提交于 2019-12-12 14:28:08
问题 Is it possible to add a card in power BI that shows the last time the underneath dataset has been updated? Many thanks! 回答1: You can create a blank query and use the following M query to create a single-cell table: let Source = #table(type table[Last Refresh=datetime], {{DateTime.LocalNow()}}) in Source And then you can use the Card visual and drag in the column to show it. You can rename the field to remove the default aggregation. (It doesn't matter since there is only one row of data

Case sensitivity in Power BI

爷,独闯天下 提交于 2019-12-12 13:46:29
问题 I wanted to know if it's possible to configure the case sensitivity in Power BI. I have data in an Oracle DB where a primary key EXample is different from exampLE . But if I want to import it in Power BI, it won't work. Any idea ? 回答1: For now, I think your best bet would be to create an index for your primary key in the query editor stage and then use that index in Power BI for your relationships. This is outlined here: http://www.thebiccountant.com/2015/08/17/create-a-dimension-table-with