powerbi

Pass Parameters in cmd while opening Power BI Desktop

a 夏天 提交于 2019-12-24 17:29:38
问题 I am using a Power BI Desktop Template. The Tables are created dynamically. The two highlighted parameters together for a table name. I am planning to open the report from another application, is it possible to pass these parameters via the command line when the report is opened? This is to make things easier for the user without expecting him to edit the parameters after opening. Thanks in advance 来源: https://stackoverflow.com/questions/52146213/pass-parameters-in-cmd-while-opening-power-bi

Power BI - countif

老子叫甜甜 提交于 2019-12-24 17:26:02
问题 I have the below table and trying to move from excel to Power Bi. In excel I use =COUNTIFS($A$2:$A$16,"<="&E2,$B$2:$B$16,">="&E2) to get Count value but I wonder how can I calculate it in Power BI open_date close_date Date Count 16-Sep-18 14-Jan-19 16-Sep-18 1 21-Sep-18 19-Jan-19 17-Sep-18 1 23-Sep-18 21-Jan-19 18-Sep-18 1 17-Jan-19 27-Jan-19 19-Sep-18 1 26-Jan-19 28-Jan-19 20-Sep-18 1 27-Jan-19 28-Jan-19 21-Sep-18 2 19-Jan-19 19-Jan-19 22-Sep-18 2 19-Jan-19 29-Jan-19 23-Sep-18 3 27-Jan-19 29

Install npgsql for PowerBI

自作多情 提交于 2019-12-24 17:24:39
问题 I'm not a programmer and I haven´t Visual Studio installed in my PC but I need npgsql to connect Microsoft PowerBI (Power Query) to a Postgres instance. Is there a way to install it without having to compile it? Is it necessary to do special configurations in my PC to make it work? Thank you very much. Javier 回答1: To expand on @Shay's comment, you can use nuget if you want the latest version of Npgsql. You don't need to install nuget.exe; you can down download the latest nuget package from

Power BI - Show only data that belongs to the required selection (And Logic)

拈花ヽ惹草 提交于 2019-12-24 11:22:33
问题 I have a table like this Role Skills Resource Data Analyst R A Data Analyst Python A Data Analyst SQL B Business Analyst SQL A My Skills are on filter. I have multiple visuals on the dashboard. And If I select SQL and Python then the results of both Data Analyst and Business Analysts are getting displayed in the visual. But, I want it to display only the Data Analyst results because only Data Analyst has all the selected skills. To achieve this, I think of creating a measure and putting it on

How to calculate Earned Premium between two dates till @AsOfDate and break it down by each month in DAX

北慕城南 提交于 2019-12-24 11:00:08
问题 I have Premium for a policy with TransactionEffectiveDate and TransactionExpirationDate . Is any way to write query in DAX that would take each premium amount and break it down by the month between those two dates. The @AsOfDate parameter will be the date the policy stops Earning. For Example: PolicyNumber WIC1000158-00 has Premium of $82,913 and TransactionEffectiveDate 1/5/2018 and TransactionExpirationDate 1/5/2019. which gives us total of 365 days of Policy life. Let see how much we

How to apply CONTAINS clause on hierarchical categories to create scenario analysis in Power BI

你说的曾经没有我的故事 提交于 2019-12-24 10:56:30
问题 Building upon the solution given by @olly (Power BI: How to scenario analysis, where the selector "looks up" the select value from slicer and gets values from that row) & file: https://pwrbi.com/so_55281950-2/ In the sample file a "what if" or scenario analysis is created. Two slicers are used, one which selects the scenario, and another one which selects the objects to apply the scenario on. @Olly provided a clever solution to deal with the situation: Value + Trend = SUMX ( 'Demo Fact Table'

Display rows where foreign key is present in PowerBI

拈花ヽ惹草 提交于 2019-12-24 10:46:40
问题 I have two tables. The first table is called Capability: The second table is called Information Group: Some ID 's in the Capability table have been referenced in the Information Group table (i.e. in the Capability column ) At present, the query that powers the dashboard for the Capability view is: = Source{[Schema="dbo",Item="Capability"]}[Data] I want to show only rows in the Capability table where there is at least one reference in the Information Group table. In other words, since

Power BI Rolling Average

半城伤御伤魂 提交于 2019-12-24 08:47:27
问题 I've used the new Quick Measures feature of Power BI to build a 3 month rolling average calculation and it's working well. The equation is displayed below. However, when I try to use this metric in a time series visualization, the calculations are displaying three months past the current month, but I'd like for the calculation to stop at the current month. I've played around with the __DATE_PERIOD variable to no avail. My date filter for the page is set to show all dates in the current months

I am getting an error while connecting to Azure SSAS server in Power-BI through Import mode

允我心安 提交于 2019-12-24 08:10:56
问题 I am getting an error while connecting to Azure SSAS server in Power-BI. In Power-BI, I am selecting SQL Server Analysis Services database as a data source and I am selecting Import mode. then it is throwing me an error- "The server parameter must be a valid hostname or HTTP URL." If I use 'Live connection' mode then I am able to connect but I want to do it from 'Import' mode. so how can I get HTTP URL for SSAS server? 回答1: If I understand your question, you're connecting to Azure Analysis

Azure Search statistics Power BI

故事扮演 提交于 2019-12-24 07:55:45
问题 I'm using storage account to gather Azure Search statistics with current settings by more than one week And Power BI to view reports. The issue is that even when I'm importing data for 20 days I can't see it in "Search over time report", but only for one day regardless on period I'm selecting. What is right way of data import or/and date range selecting on this kind of report? Thank's 回答1: The problem is caused by some queries with search terms that contain invalid escape sequences (\^ and \~