powerbi

TS. Argument of type '{…}' is not assignable to parameter of type 'IEmbedConfigurationBase'

浪尽此生 提交于 2021-01-29 10:16:40
问题 I'm trying to write an embedded powerbi interface for a website using ASP.NET and C#. Currently, I'm stuck on an error. I am using the powerbi-javascript own github wiki in order to get a good idea on how to make it. With some work I managed to get a bit of work around some problems and errors to get to it now. However, as it stands now, I am not capable of solving this error. The full message of the error is: Severity Code Description Project File Line Suppression State Error TS2345 (TS)

Is it possible to get reports by filtering using power bi rest api?

邮差的信 提交于 2021-01-29 10:05:48
问题 Is it possible to get reports by filtering using power bi rest api? I want to embed power bi reports filtering by records. I can't see any option on power bi rest api, then how to get all reports by filter and embed reports in my application? Since I am using powerbi.js as javascript client so below is my sample code: https://github.com/Microsoft/PowerBI-JavaScript var tokenType = 'embed'; // Get models. models contains enums that can be used. var models = window['powerbi-client'].models; //

How to write a nested IF statement that has multiple outputs?

老子叫甜甜 提交于 2021-01-29 09:40:21
问题 The context: Column 1 Column 2 Column 3 Column 4 (IF statement result column) a,b 2.99 $2.99 1/2 mismatch a a,b 3.49 $2.89 Column 1/2 mismatch,3/4 mismatch b a 1.99 $2.99 Column 1/2 mismatch,3/4 mismatch a,b a,b 3.49 $3.49 so only in stance of and exact match (I have many columns that have comparable values that I need to follow this pattern). Is there a way to do this? 回答1: I don't think you need nested IF statements, just CONCATENATEX : Result = VAR ColList = { [Column1], [Column2], <..

Row number partition by to POWER BI DAX query

孤街醉人 提交于 2021-01-29 09:33:51
问题 Can someone help me to convert the sql string to Dax? row_number() p over (partition by date, customer, type order by day) enter image description here The row number is my desired output. 回答1: Assuming that your data looks like this table: Sample +------------+----------+---------+--------+ | Date | Customer | Product | Gender | +------------+----------+---------+--------+ | 01/01/2018 | 1234 | P2 | F | | 01/01/2018 | 1234 | P2 | M | | 03/01/2018 | 1235 | P1 | F | | 03/01/2018 | 1235 | P2 |

Power BI desktop cannot import data with Azure Cost Management Connector

我只是一个虾纸丫 提交于 2021-01-29 09:24:06
问题 I recently started using the Azure Cost Management connector for Power BI. The idea is to get Azure consumption data to PBI and generate some reports. However, I'm getting the following error when trying to load the data: The user does not have any claims associated I am using our organization's Enrollment Number and the Key. I tried the Azure Consumption Insights connector and it worked without an issue and I was able to import data into PBI desktop app. Do we need to enable anything from

Power BI dataset refresh using Powershell

半城伤御伤魂 提交于 2021-01-29 08:52:10
问题 I've been using this powershell script to refresh the dataset in Power BI which was worked for me, but the problem was when I ran the script there was always a pop-up for me to login to my Power BI account. I really want to know if there's anyway to make the script auto login for me? Thank You script: https://github.com/Azure-Samples/powerbi-powershell/blob/master/manageRefresh.ps1 回答1: With the following you can easily get access the group info: $pbiUsername = "< USERNAME >" $pbiPassword = "

How to display current date and time in power bi visuals?

我与影子孤独终老i 提交于 2021-01-29 08:30:49
问题 Is it possible to add a card in power BI that shows the current date and tome time?? Many thanks! 回答1: You can show only time of last data refresh. Use one of this: DAX Measure MyNow = TODAY() returns single date PowerQuery MyNow = DateTime.LocalNow() returns table with single row & col 回答2: Current Date & Time: MyCurrentDateAndTime := NOW() The value will be updated each time you open the worksheet. 来源: https://stackoverflow.com/questions/55672251/how-to-display-current-date-and-time-in

Analysis services with PowerBI

流过昼夜 提交于 2021-01-29 08:06:23
问题 I got authentication problems while connecting PowerBI to Analysis services on premise . I read that we need to do User Principal Name (UPN) mapping but i do not have a domain , Analysis services is on an azure virtual machine . So my question is , if i do configure HTTP Access to Analysis services would that be a solution that works with PowerBI ? Is it possible for PowerBI to connect to the Analysis services HTTP end point ? Thanks 回答1: As of now it's not possible to connect to SSAS hosted

How to add total sum of each rows within group with DAX Power BI

做~自己de王妃 提交于 2021-01-29 07:59:52
问题 I am trying to give rank column of every group which repeating in every rows within the group of the original table but not the shape of after sum-up. The formula i found in another site but it show an error : https://intellipaat.com/community/9734/rank-categories-by-sum-power-bi Table1 +-----------+------------+-------+ | product | date | sales | +-----------+------------+-------+ | coffee | 11/03/2019 | 15 | | coffee | 12/03/2019 | 10 | | coffee | 13/03/2019 | 28 | | coffee | 14/03/2019 | 1

Power BI: Changing multiple slicer relationship to be OR not AND

匆匆过客 提交于 2021-01-29 07:48:44
问题 In Power BI you can have multiple slicers based on different criteria in the data, e.g. one on shape and one on colour. The interaction between or among these slicers means that if I were to select "circle" and "red" then the results would be about red circles only. It filters to those entries where BOTH slicers are met. Is there a way to set Power BI slicers so that if I selected "circle" and "red" I would get both all red and all circle results (e.g. only one slicer needs to be satisfied)?