powerbi

How to extract all PowerBI users and workspace access using the PowerBI API or Azure Portal?

笑着哭i 提交于 2020-04-30 13:58:24
问题 New to Power BI. Trying to get a report of the Users who have access for each Dashboards. Any pointers would be helpful. Thanks in advance! 回答1: You can use Get-PowerBIWorkspace from Microsoft Power BI Cmdlets to get list of workspaces and then list the members of the underlying Office 365 group (unless you are using the new preview workspaces, which has no underlying Office 365 group) using Get-UnifiedGroup cmdlet. To be able to use it, you need to Connect to Exchange Online PowerShell. Then

Table relationship to ensure table filters with the date slicer when the dates in table overlap

僤鯓⒐⒋嵵緔 提交于 2020-04-30 11:07:31
问题 I have a table Staff Booking containing Start date and End Date for a job. I also have a calculated table filed with Date Range 2 = CALENDAR(MIN('Staff Booking'[Start Date]), MAX('Staff Booking'[End Date])) I want to eventually make a relationship between these two table such that: 1) When the date slicer range is defined, the jobs that overlap the slicer are filtered (using the start dat and end date columns) 2) And for the jobs that overlap, if the start date < min(slicer date) then start

Table relationship to ensure table filters with the date slicer when the dates in table overlap

99封情书 提交于 2020-04-30 11:07:25
问题 I have a table Staff Booking containing Start date and End Date for a job. I also have a calculated table filed with Date Range 2 = CALENDAR(MIN('Staff Booking'[Start Date]), MAX('Staff Booking'[End Date])) I want to eventually make a relationship between these two table such that: 1) When the date slicer range is defined, the jobs that overlap the slicer are filtered (using the start dat and end date columns) 2) And for the jobs that overlap, if the start date < min(slicer date) then start

How can I loop trough elements in columns in a powerbi function?

大憨熊 提交于 2020-04-30 10:24:23
问题 I want to write a Function for cleaning numbers. While leaving them as text. So, in my queries I want to use e.g.: = CleanRN(PrevQueryTable, {"NumericTextColumn"}) The function is supposed to remove all non numeric characters and leading zeroes in not already numeric texts. (But the function is not the point for this question.) So in the queries themselves I can go with = Table.ReplaceValue(Benutzerdefiniert2,"_","",Replacer.ReplaceText,{"ONKZ/RufNr"}) or = Table.ReplaceValue(#"Ersetzter

How can I loop trough elements in columns in a powerbi function?

巧了我就是萌 提交于 2020-04-30 10:23:42
问题 I want to write a Function for cleaning numbers. While leaving them as text. So, in my queries I want to use e.g.: = CleanRN(PrevQueryTable, {"NumericTextColumn"}) The function is supposed to remove all non numeric characters and leading zeroes in not already numeric texts. (But the function is not the point for this question.) So in the queries themselves I can go with = Table.ReplaceValue(Benutzerdefiniert2,"_","",Replacer.ReplaceText,{"ONKZ/RufNr"}) or = Table.ReplaceValue(#"Ersetzter

Count Remaining Days per Fiscal Month

半城伤御伤魂 提交于 2020-04-30 06:29:22
问题 Based on this Post I am building a fiscal calendar: The following Dax generates a DAX Calendar: Calendar = VAR BaseCalendar = CALENDAR ( DATE ( 2016; 1; 1 ); DATE ( 2025; 12; 31 ) ) RETURN GENERATE ( BaseCalendar; VAR BaseDate = [Date] VAR Year = YEAR ( BaseDate ) VAR MonthNumber = MONTH ( BaseDate ) VAR WeekNumber = WEEKNUM ( BaseDate ) VAR FWeek = WEEKNUM ( BaseDate; 21 ) RETURN ROW ( "Day"; BaseDate; "Year"; Year; "Month Number"; MonthNumber; "Month"; FORMAT ( BaseDate; "mmmm" ); "Year

Percent of Total Windowed in Power BI DAX

自古美人都是妖i 提交于 2020-04-30 02:35:21
问题 I have these two tables: A data table... ImaginaryData = DATATABLE ( "Fruit", STRING, "Colour", STRING, "Amount", INTEGER, { { "Apple", "Red", 10 }, { "Apple", "Green", 5 }, { "Pear", "Pink", 100 }, { "Pear", "Blue", 65 }, { "Orange", "Black", 12 }, { "Orange", "White", 8 } } ) A lookup table... ImaginaryLookup = DATATABLE ( "Fruit", STRING, { { "Apple" }, { "Pear" }, { "Orange" } } ) Then I created this simple 1-to-many relationship: Now I am trying to create a Percent of Total measure to

Filter SUMMARIZECOLUMNS

戏子无情 提交于 2020-04-28 09:12:32
问题 How to construct filter tables for SUMMARIZECOLUMNS function? The SUMMARIZECOLUMNS has the following pattern: SUMMARIZECOLUMNS( ColumnName1, ... ColumnNameN, FilterTable1, -- my question concerns this line FilterTableN, Name1, [measure1], NameN, [measure2], ) I have checked that the following 3 patterns work. They return the same results, at least for the simple sample data I used. SUMMARIZECOLUMNS ( T[col], FILTER( T, T[col] = "red" ) ) SUMMARIZECOLUMNS ( T[col], CALCULATETABLE( T, T[col] =

Filter SUMMARIZECOLUMNS

自古美人都是妖i 提交于 2020-04-28 09:12:07
问题 How to construct filter tables for SUMMARIZECOLUMNS function? The SUMMARIZECOLUMNS has the following pattern: SUMMARIZECOLUMNS( ColumnName1, ... ColumnNameN, FilterTable1, -- my question concerns this line FilterTableN, Name1, [measure1], NameN, [measure2], ) I have checked that the following 3 patterns work. They return the same results, at least for the simple sample data I used. SUMMARIZECOLUMNS ( T[col], FILTER( T, T[col] = "red" ) ) SUMMARIZECOLUMNS ( T[col], CALCULATETABLE( T, T[col] =

Matching rows between two columns to get an exact or partial match

ぐ巨炮叔叔 提交于 2020-04-18 12:37:07
问题 I’m having a problem writing a query in power bi for matching two rows partially or completely. In addition to that I’m trying to calculate the match percentage if found and put the results in a new column. The actual dataset contains a lot of rows and tables but for the sake of this example I’m using only 4 columns. The columns 'ID' and 'Text' are uniquely identified. 'KI ID' and 'KI Test' are also unique but they are not related to columns 'ID' and 'Text' only when a match occurs. What I