powerbi

Average Power BI Aggregates

人盡茶涼 提交于 2019-12-12 02:14:05
问题 I have entries that are uniquely identified by a variety of fields and that I pull in from Excel. Entries relate to the daily amount of work done, and people working on a specific area of a plant. Each entry has a work done field (measurement of the work done on that area), and a manpower count. The productivity per area is calculated by work done divided by manpower. Date Area Work Done Manpower Productivity 2017/02/01 Pipe 50 25 2 2017/02/01 Valve 22 2 11 2017/02/01 Machine 54 2 22 I want

How to create a DAX measure that extracts Information from the metadata of Tabular model in SSAS or Power BI.?

喜你入骨 提交于 2019-12-12 01:28:40
问题 I have just started learning the SQL Server and Power BI. I'm working on a project and for that i need to create a Measure for the Power BI report that will dynamically extracts the information about all the tables (like Table Name, Last Updated, Dependencies, etc) used in the Tabular solution. I couldn't find any satisfactory answer anywhere. Is there anyone here who could help? 回答1: If you are using an SSAS tabular data model or multi-dimensional cube, you can use DMVs to extract meta data

Power BI Distinct Count Incorrect Total

ⅰ亾dé卋堺 提交于 2019-12-12 01:24:22
问题 I am trying to calculate Distinct Count of 'Cust' in Table A using DAX as CALCULATE(DISTINCTCOUNT('TableA'[Cust])) Where I'm getting the distinct count correctly but the Total is Incorrect. Any suggestions on correcting the formula would be helpful. Thanks!! 回答1: Let's say you have four customers "Alex","John","Mike","Joe" in three BT groups AUT,CT,MT . AUT has "Alex","John","Mike" CT has "John","Joe" MT has "Alex","John","Mike","Joe" Your table would be BT Count ---------- AUT 3 CT 2 MT 4

Power BI - Measure to calculate the distinct count

点点圈 提交于 2019-12-12 01:13:16
问题 I have a requirement where I am calculating the distinct count while leaving a particular value. For example, Consider this - BU Rev RevDes concatenatedcolumnfordistinctcount 1A AppR 1A 1AAppR1A 1A AppR 2A 1AAppR2A 1A FAppR 3A 1AFAppR3A 2A BcR 1A 2ABcR1A 2A BcR 1A 2ABcR1A 2A AcR 1A 2AAcR1A For hierarchy, Imagine something like this - BU - Grand Parent RevDes - Parent Rev - Child First Step – Calculate the distinct count of the concatenated output column For Business Unit, 1A – it will be 3

Power bi filter column by slicer

爱⌒轻易说出口 提交于 2019-12-11 18:51:28
问题 I have a Clustered column chart and for the Legend field and have to switch between 2 columns based on a slicer: if no slicer is filtered then use column0 for Legend if slicer is filtered then use column1 for Legend I tried adding a calculated column like this Column = IF(ISFILTERED(Table1[slicer]) = TRUE(), Table1[column1], Table1[column0]) And then use this column as Legend. But this doesn't work! Can you please advice me how to do it right? 回答1: You can't filter calculated columns by

How can I bring a record from another table with certain conditions from my table in DAX?

和自甴很熟 提交于 2019-12-11 18:39:34
问题 I have two tables. One with dates and customer ID's of tech support given [Table 1], and the other one with surveys sent to the customers [Table 2]). The problem is that the surveys are sent some days after the service is done. So, I need to find the survey ID with the closest date from the survey table and bring it to my tech support table. Here's a sample of my data and the result wanted. Table1: TechSupportDate CustomerID 01/12/2018 1 02/12/2018 2 05/12/2018 1 Table2: SurveyID SurveyDate

Show reports based on user

折月煮酒 提交于 2019-12-11 18:01:39
问题 I am new to PowerBI. I have several stores. Now I want to make generic reports for all the stores. All the stores can see same reports. But the data for all the reports would be respective. That means particular store can see the data for itself. How can we achieve that? 回答1: I believe what you are trying to do can be achieved with row level security. https://docs.microsoft.com/en-us/power-bi/service-admin-rls Basically, you create roles for your reports which filter the data that is

Input data directly through Power BI published report

只谈情不闲聊 提交于 2019-12-11 17:46:51
问题 Is there any workaround to input data directly through PBI in published report? I would like the users to input comments to the graphs. It would be fantastic if the user could do that directly in PBI report, below the chart. I can see on official PBI Ideas For Improvement page that these features are developers' dreams to be voted: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9414921-input-fields https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13820190

DAX TREATAS filtering by another table to get sales of all products on promotion

好久不见. 提交于 2019-12-11 17:39:40
问题 How to filter all products on promotion? Say we have two tables Sales and Budget without physical relationship. Here model is simplified and let's assume that it is the case, we cannot create physical relationship. We have to use virtual relationship. We can see summary: The two first columns are of the Sales table. The third column BudgetTreats is a measure: BudgetTreatas = CALCULATE ( SUM ( Budget[amount] ), TREATAS ( VALUES ( Sales[id] ), Budget[id] ) ) Now I would like to resolve two

Power BI Service - refresh failure on using VSO API

假如想象 提交于 2019-12-11 17:23:24
问题 I have connected my Power BI report to the VSO data, using VisualStudioOnline connector (beta). Since this doesn't support the multi line text field data under it's data set, I have used the queries option to call the VSO API to fetch this data. The report refreshes successfully when used in Power BI desktop app. But the refresh fails when published to the Power BI service with the message "You can't schedule refresh for this dataset because the following data sources currently don't support