powerbi

Print/Generate PDF of embedded power bi report

倖福魔咒の 提交于 2019-12-23 13:20:12
问题 I have embedded a power bi report into my website. I want to implement save to pdf or print feature in it. Is there any way to implement these features? 回答1: My suggestion is to use the Power BI API to embed your report and then use javascript to launch the print dialog. window.print(); Out of the box there is no button inside Power BI that export your report as a PDF as is. On the Power BI Service, you have the possibility to export your report in PowerPoint, but the exported data are single

Power BI - DAX Measure to calculate churned and reactivated customers in the current period. Incorrect total

五迷三道 提交于 2019-12-23 12:23:16
问题 Below is a simplified version of the data. Daily transaction list for customer ID SalesData = DATATABLE ( "Customer ID", INTEGER, "Date", DATETIME, "Amount", INTEGER, { { 101245, "2019/04/07", 500 }, { 101245, "2018/08/05", 400 }, { 100365, "2018/07/30", 900 }, { 100365, "2018/02/22", 700 }, { 104300, "2019/04/05", 300 }, { 104300, "2019/04/03", 350 }, { 104300, "2019/04/01", 310 }, { 107804, "2018/11/08", 650 }, { 107804, "2018/11/19", 640 }, { 108040, "2019/01/02", 730 } } ) Objective:

Power BI Slow with SSAS Multidimensional Cube

霸气de小男生 提交于 2019-12-23 07:00:09
问题 We are implementing Power BI with SSAS Cube Direct Query. For some reason, SSAS Power BI is extremely slow performance, however using SSDT SSAS Application or Power View or Excel is Much faster. I read that Power BI converts SSAS Multidimensional models by converting MDX to a DAX query. Is there any method to speed up Power BI queries for SSAS, or use MDX queries directly? We are applying SSAS Multidimensional model. 回答1: I don't think that the performance issue is caused by converting MDX

How to update clients' Power BI files without ruining their reports?

一个人想着一个人 提交于 2019-12-23 06:06:18
问题 We have lots of clients each having a database(all have same structure) on their servers. I am trying to prepare a base Power BI file which has the ability to get data from the server and has business logic (calculated columns, measures etc.). But every client needs their own reports. I am trying to prepare Data and Relationships tabs and clients are preparing Report tab. But what if I want to update the business logic ? How can I update clients' files without ruining their already prepared

Power BI. Execute SQL Server stored procedure with a user parameter

被刻印的时光 ゝ 提交于 2019-12-23 02:38:08
问题 I have a Power BI report and a stored procedure with a @DateFrom parameter which returns a number of rows. I want to allow user to choose the date which will be passed to stored procedure. (Using DirectQuery mode) I have fount zero solutions to this simple task. Maybe I don't understand anything, but it's quite a common problem, which seems to be ignored by Power BI developers. Here is my stored procedure: EXEC [rpt].[sp_rpt_bids_statictics_2] @DateFrom = '20160101' Now I want to allow user

“Property does not exist on type {}” error when using anonymous function with D3 SVG Symbol

三世轮回 提交于 2019-12-23 02:35:03
问题 I'm trying to create D3 SVG Symbols, with the symbol shape set dynamically based on a category property in the data. This will be part of a custom visual in PowerBI, so I'm using Typings library. From the examples I've seen online, the below code should work. var milestoneSymbols = this.milestoneContainer.selectAll('.path').data(viewModel.milestones); milestoneSymbols.enter().append('path'); milestoneSymbols.attr('d', d3.svg.symbol() .size(25) .type( function(d){ return d.typeSymbol}) );

Power BI - load *.htm file saved as .xls

ⅰ亾dé卋堺 提交于 2019-12-23 00:49:25
问题 I have a requirement where I have to import an .xls file which is saved as .*htm, .*html Opening the file and clicking on saving as, will usually show the format that the file is in and this is how it looks - I clicked on Binary and it showed me the .xls file and I opened it as Excel workbook, csv, text, html, xml but it didn't work :- Opening it as Excel Workbook gives me this error - Eternal Table is not in the Expected Format. How do we load this inside Power BI. The data is present in

CALCULATE with OR condition in two tables

非 Y 不嫁゛ 提交于 2019-12-22 11:29:32
问题 In order to Sum the sales amount of blue products OR products that belong to category shoes, I'm using the following DAX expression: CALCULATE( SUM(Table[SalesAmount]), FILTER( Table, Table[Color] = "Blue" || Table[Category] = "Shoes") ) However, this doesn't work with two different tables (Colors and Categories), like: CALCULATE( SUM(Table[SalesAmount]), FILTER( Table, Colors[Color] = "Blue" || Categories[Category] = "Shoes") ) Can anyone help? Thanks! 回答1: Searching the web led me to this

Default filter in Power BI - Row Level Security not applied through LOOKUPVALUE

岁酱吖の 提交于 2019-12-22 09:57:25
问题 TL;DR: When using LOOKUPVALUE() against a table with Row Level Security, the RLS is not applied and all values are seen I have a requirement to have a 'default' value (location) picked in a Power BI report, based on the user. I am reporting against Azure Analysis Services (tabular model 1400) It appears that the way to implement default values in Power BI is to dynamically rename a value to something static, and pick that static value as a filter. So user Bob has default location Location1 so

Time-based drilldowns in Power BI powered by Azure Data Warehouse

血红的双手。 提交于 2019-12-22 07:57:29
问题 I have designed a simple Azure Data Warehouse where I want to track stock of my products on periodic basis. Moreover I want to have an ability to see that data grouped by month, weeks, days and hours with ability to drill down from top to bottom. I have defined 3 dimensions: DimDate DimTime DimProduct I have also defined a Fact table to track product stocks: FactStocks - DateKey (20160510, 20160511, etc) - TimeKey (0..23) - ProductKey (Product1, Product2) - StockValue (number, 1..9999) My