powerbi

Excel Power Query - How to create final table based on Joins

烈酒焚心 提交于 2019-12-13 03:53:59
问题 Can you please help me in creating a final table using Excel Power Query based on the logic mentioned in below screenshot: 回答1: I resolved it by myself. Following are the steps: 1) I created a unique country code list with 1 column (Origin & Destination) 2) Left join with Origin table and then got the destination code from common table 3) added a custom column to get all rows except where origin = Destination. In this way I got the Outbound column values. 来源: https://stackoverflow.com

Power BI Blank Chart in Custom Visual

99封情书 提交于 2019-12-13 03:51:18
问题 I am following this tutorial to create a Custom Visual for PowerBI: http://radacad.com/create-custom-visual-with-r-and-json-part3 Let's say I am using default data: mtcars inside my custom visuals for Power BI. I am trying to Create 2 fields let's say "Mileage Per Gallon" and "Cylinder Size" as below: Here is my Script.R source('./r_files/flatten_HTML.r') ############### Library Declarations ############### libraryRequireInstall("ggplot2"); libraryRequireInstall("plotly") ####################

Power BI: How to scenario analysis, where the selector “looks up” the select value from slicer and gets values from that row

限于喜欢 提交于 2019-12-13 03:46:17
问题 I've followed multiple tutorials on scenario analysis and what if analysis in power BI. these examples are quite clear to me and I somewhat understand how they work. For example this (https://community.powerbi.com/t5/Community-Blog/Scenario-Analysis-What-Ifs-Tips-amp-Techniques-For-Power-BI/ba-p/559653). In this example they create a table that contains values for different scenarios 5% 10% 15% 20% etc. and the user of the report can select these. But what if instead of direct values I have

how to distribute the subcategory of an axis in Power Bi

ぃ、小莉子 提交于 2019-12-13 03:28:35
问题 At the beginning I had this table what I want is to divide the universe into 3 sections, so I do the following i believe in column UniqueRank = RANKX ( inci; FORMAT (inci[nro_casos]; "0000" ) & inci[region] & inci[site] ) then I create two measures ranking_total = RANKX ( ALLSELECTED ( inci ); inci[UniqueRank]; MAX ( inci[UniqueRank] ) ) tirdh_case = IF(inci[ranking_total]<=COUNTROWS(ALLSELECTED(inci))*0.33;"3P"; IF(inci[ranking_total]<=COUNTROWS(ALLSELECTED(inci))*0.66;"2P";"1P")) Then I

Display Count of Users based on Multiple slicer values Power BI

我们两清 提交于 2019-12-13 03:25:25
问题 I am working on a Viewership table which tells numbers of customers watches asset. There are two asset filters. One for watched and one for not Watched. Based on the asset filters, I need to display number of customers who watched the show & customers who didn't watched the show. Below is the method I have used. First, created a new table "Asset": This table contains unique assets and used it to create a slicers that affects DAX measure but does not affect the visual (table). Asset table

How to sum multiple duration values that sum to greater than 24 hours in PowerBI

霸气de小男生 提交于 2019-12-13 03:21:08
问题 How do I sum multiple duration values (different people working in one day) when the results will be greater than 24 hours (e.g. 125:23:33) in a measure. For example these are some duration values to add: 13:33:55 20:44:23 15:31:11 回答1: You will need to create a "New Quick Measure" column with the dax code below: SumDuration = VAR TotalSeconds=SUMX('MyTable',HOUR('MyTable'[duration])*3600+MINUTE('MyTable'[duration])*60+SECOND('MyTable'[duration])) VAR Days =TRUNC(TotalSeconds/3600/24) VAR

DAX - Bring back all records from a team where the logged in user is in the team

独自空忆成欢 提交于 2019-12-13 03:07:32
问题 I have Row Level Security applied in Dynamics CRM for Power BI embedded. The logged in user only sees their data and now I'd like for them to see all teams data that the logged in user is part of. Bring back all team data that Lucy appears in: Logged in user: Lucy Username: user1 TEAM A Record 1 (Lucy) Record 2 (Bob) Record 3 (Lucy) TEAM B Record 4 (Lucy) Record 5 (Kate) Record 6 (Paul) TEAM C Record 7 (Lucy) Record 8 (Bill) Team D Record 9 (John) Record 10 (Jane) The DAX should bring back

DAX Last Year to Date

孤人 提交于 2019-12-13 02:54:34
问题 So I know this question has been asked a few times, and I've religiously looked over different approaches, however I still don't quite understand why I'm getting an incorrect result. Case: I have Sales Data from ~2016 -> 2019 (up until the 2/18/2019) I'm have a Measure to show me the YTD, however I'm looking for a measure for Last Years to date(the 18th in this particular circumstance). Right now, I have this: Total Sales LYTD = CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( FILTER ( VALUES

how to use Power Bi Microsoft Without the use of Azure Services

穿精又带淫゛_ 提交于 2019-12-13 02:25:06
问题 I am just getting started Power Bi And I have in mind for Local use And Not Use Azure Services And report output in software that is written By Asp.Net Mvc I thank you for your answer , if possible , if introduced similar project 回答1: I believe, there is no way to do that without Azure at all - local hosting is in the development. Microsoft has the corresponding implementation called PowerBI Embedded to implement what you want: https://azure.microsoft.com/en-us/documentation/articles/power-bi

Expand Table Rows for Each Delimited Value in One Column's Cells

这一生的挚爱 提交于 2019-12-13 02:16:44
问题 I'm an Excel VBA programmer who's recently discovered Power Query and Power BI. Often, I will receive requests to change something like: Into a sort of un-pivoted version that looks like: This can absolutely be done in VBA, but watching several Power Query videos (and now ordered three books!) It seems it would be much more efficient to do it in Power Query. I get the over-all idea (create a table from the delimited list, for one) but don't know the language of the actual steps. And I really