powerbi

How to anonymize/mask part of string in PowerBI?

不想你离开。 提交于 2019-12-11 01:37:54
问题 Say I am creating a pie chart for customer called 'Air Holland', for this customer I would like to show the overlap with other customers in a pie chart, including customers called 'Air Hungary', 'Air Ireland' and 'Air Iceland'. Due to privacy regulations of my customers I can only show partial names, e.g. the first three or four letters of their name. 'Air Holland' thus changes to 'Air xxxxxxx' To implement this now in my pie chart, I have created a new Column CustomerNameMasked that takes

Change Axis of Scatter Chart in Power BI

大憨熊 提交于 2019-12-10 22:52:10
问题 I need to change the type of the Axis in the orginal code of Enhanced Scatter Chart, i need to but a DATE column instead of COUNT of DATE, I am trying to edit the orginal code of the visualization. But i have no idea how to do it right. it tried to do the following : I changed the following line : xScale = <D3.Scale.LinearScale>this.xAxisProperties.scale, into : xScale = <d3.time.scale>this.xAxisProperties.scale, also i tried to change all the X axises from a string into Number. Any idea how

Top N Customer Names as a slicer in power BI

柔情痞子 提交于 2019-12-10 22:46:52
问题 i am new to power BI, i have a requirement to create a report which will show the data for top N customer based on sales amount. once i have identify the top N customer i need other charts / table / graphs to show the data of these N customer. so eventually i need a slicer that will show me the top N customer based on sales. i have gone through various post, there they dynamic way of finding the top N (disconnected table) and then customer name as a measure is possible. when i combine this

How can I create a relationship matrix in Excel

人走茶凉 提交于 2019-12-10 20:08:15
问题 Given a list of triples I want to get a relationship matrix as follows. 1 A X 1 A Y 1 B X A B C 1 B Z 1 X,Y X,Z 2 A Z ==> 2 Z X Y 2 B X 3 Y Z 3 A Y 3 A Z 2 C Y (How) can this be done in Excel/VB/PowerBI or similar ? 回答1: Using an array formula, you can generate an array which will hold either the value of the third column or a blank depending on whether the value should be included. You can then join them using TEXTJOIN. TEXTJOIN being new in Office 365; if you don't have it you'll first need

PowerBI Natural Left outer join issues with deleted rows in right table

夙愿已清 提交于 2019-12-10 19:26:30
问题 I have two tables. 1) Table 1 : 1 column with date value 2) Table 2 : 2 columns : Date column + business value column I am trying to use DAX in PowerBI to create a new table using a left outer join to fill missing dates in my second table. First table : | Date | | 2015-05-01 | | 2015-06-01 | | 2015-07-01 | | 2015-08-01 | Second table : | Date | Value | | -----------|--------- | | 2015-05-01 | 5 | | 2015-05-01 | 5 | | 2015-06-01 | 6 | | 2015-07-01 | 7 | DAX code to create new table : Table =

Plot a line using d3.js library in Power BI custom visual

我只是一个虾纸丫 提交于 2019-12-10 19:16:15
问题 I'm struggling with plotting a sigle line in Power BI custom visual. Reports in Power BI are written using TypeScript and d3.js v.3.0. I'm able to plot chart with axes, but the line doesn't appear. Using pure d3.js in HTML file is really easy, but it is hard to integrate it with TypeScript due to typings preservation. While developing this code I have had several problems with typings. Code below almost works. Take a look at this snippet. Issue with typings arises, when at the bottom I delete

Find String from One List within Another List and Return String Found

牧云@^-^@ 提交于 2019-12-10 18:14:59
问题 I found part of what I was looking for at Matchlists/tables in power query, but I need a bit more. Using the "Flags only" example provided at Matchlists/tables in power query, I’m comparing two lists, ListA and ListB, to check if ListB’s row content appears in ListA’s row content at all. I can’t do a one-for-one match of both rows’ contents (like with List.Intersect) because the content of a row in ListB might only be part of the content of a row in ListA . Note that, in the query below,

Power BI, DAX--How do I count rows in one table based on values in another table?

只愿长相守 提交于 2019-12-10 17:48:30
问题 I have two tables, lets call them Table1 and Table2. Table1 has a column of unique values, Table2 has a column with the same values but repeated. What I am trying to accomplish is to calculate the number of times that value appears in Table2 as a new column in Table1. 回答1: If the tables are related, this is very simple: Number of Table2 rows = COUNTROWS(RELATEDTABLE(Table2)) Here is an example: Your Table2 contains multiple rows per Table1 key: Then you can add a Calculated Column to Table1

Power BI / add refresh button on report view

可紊 提交于 2019-12-10 17:05:30
问题 I don't have much expertise in Power BI. I started work on it and found it very easy and I've created a report. That report is working fine. Now, I've requirements to add Refresh button on the report that will refresh the data source and get the latest data from it. I tried to search alots on it but still, I'm not able to find any reasonable solution. Do we have that kind of functionality available on Power BI? Thank you for your time! 回答1: Assuming you are working on powerbi.com, the end

Traffic lights in Power Bi which work also for totals

这一生的挚爱 提交于 2019-12-10 16:47:34
问题 How to make traffic light in table visual which works also for totals? Let's say our KPI is some sort of a ratio or a share like GDP per capita by countries , or the difference from the budget by stores . It is interesting to have traffic lights for individual categories but it would be even more interesting to have a traffic light for summary of all categories. I followed and example shown here: The idea is based on adding a DAX measure: TrafficLight = UNICHAR(11044) And then we set up