powerbi

Add Special Case to Power BI Query (M)

拥有回忆 提交于 2019-12-14 02:13:24
问题 I'm currently using Power BI's query editor to unpivot, transform, join, re-pivot and re-join some data. Illustrating: REF_Capability: ID#| Capability.1 | Capability.2 | Capability.3| 97 | Crawl | Walk | Run | 98 | Crawl | null | null | 99 | Crawl | Walk | null | Table2: Capability | Attribute| Value | Crawl | Vehicle1 | 4 | Walk | Vehicle1 | 3 | Run | Vehicle1 | 2 | Crawl | Vehicle2 | 0 | Walk | Vehicle2 | 1 | Run | Vehilce2 | 1 | Crawl | Vehicle3 | 0 | Walk | Vehicle3 | 5 | Run | Vehicle3 |

Calculate Total male Total Female in powerbi report

家住魔仙堡 提交于 2019-12-13 23:51:53
问题 I want to count the total number of males and females in a powerbi report eg. Name Gender std1 Female std2 Male std3 Female std4 Male std5 Male std6 Male The result I want is: Female 2 Male 4 回答1: To get the results you are looking for, follow these steps: Make a second table using the New Table button with the following code: GenderCounts = DISTINCT(TableName[Gender]) Make a relationship from the newly create table back to the original table Add a new column to the GenderCounts table with

Individual start date per month

和自甴很熟 提交于 2019-12-13 23:04:31
问题 together how do I get it in PowerPivot or as Dax formula out that for my internal / individual months the beginning of the month from 31.120.2018 for January 2019 receive? So, that I get the January in the PowerPivot calendar table already from 31.12.2018 and then in the 4-4-5 weeks cycle? So 31.12.2018 + 28 days = January 31.12.2018 + (28 days * 2) = February 31.12.2018 + (28 days * 2) + 7 days = March Does anyone have an idea? Best Regards 回答1: First I create a calendar table, this is the

How to find date periods between 2 dates?

爱⌒轻易说出口 提交于 2019-12-13 20:35:11
问题 I have 2 dates one is stored inside my date and for other date I am using calculated column in order to store the end date into that, how an I calculate the difference in time period between those dates, I need the date period between all those dates is that possible with DAX? How can I use calculated column inside my DAX and also I dont have a calender table inside my database. 2019-05-31 and end date is 2019-06-03 then the difference will give me 3 dates that is 2019-05-31,2019-06-01 2019

PowerBI: How to use TupleFilter with powerbi-client?

自古美人都是妖i 提交于 2019-12-13 20:10:48
问题 I am trying to use TupleFilter in powerbi-client, since I need to filter data based on two different columns with OR statement between them (2 different columns in the same table or may be in 2 different ones), check this question out. As I read in this docs, tuple filter can do this. However, when I tried to use it with report.setFilters(filters) function, I got this error from setFilters function: "undefined property is invalid". Moreover, I didn't find the function used in the above docs

How to get active rent's details for given month using power bi [closed]

你。 提交于 2019-12-13 08:29:46
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 9 months ago . I want to show active rent's details for given month in power bi. I have a table where i have rent details. In that table i have start date, end date and how many months. So when i select a month in power bi visual i want to show what are the rents currently active using power bi Example House A 1

Customers who bought and not bought some product in last 90 days

烂漫一生 提交于 2019-12-13 08:10:52
问题 I need a dax measure which shows me which customers bought products B and C in last 90 days. And another one which shows me those whose bought products B and C in last 90 days. (based in my filter date context) Below is like it should be: Can someone help me? Here is a sample data if needed: FactSales KeyDate KeyCustomer KeyProduct Total 1 1 1 12,9 1 2 2 13 1 3 1 156,4 1 4 1 564,8 2 1 1 894,8 2 2 1 56,5 3 1 2 564,85 3 2 3 564,8 4 1 1 1325,6 4 2 1 132,3 Customer KeyCustomer Name 1 Jean 2 Mari

Unable to update a Power BI table schema through the API with or without ApiaryIO

ε祈祈猫儿з 提交于 2019-12-13 07:44:16
问题 I am using Power BI API. I've got a dataset with some tables and rows. From Power BI API Console I don't have any issue when retrieving datasets or tables. However the PUT verb on a table resource to update its schema always returns a 504 - Proxy request timed out It's the first time I use Apiary IO so it might be its problem and not Power BI update, but that leads me to some questions: Is there any workaround to test Power BI with, for example, Fiddler? I can type the url and body but I will

Calculate Event Durations to only part within Sliced Period

白昼怎懂夜的黑 提交于 2019-12-13 07:30:09
问题 We are investigating PowerBI for a reporting solution and it does a lot of what we need. However we need to be able to do adhoc reporting on events. Each event has a start date and an end date and total seconds and do percentage calculations etc. This works really well. However our common requirement is to specify a start date and end date of which we wish to consider data. Many of the events will span over start and end of required period or even start before the start of period and go

Power BI DAX Calculating Last week Sales for All the Filter Options

不羁岁月 提交于 2019-12-13 07:04:10
问题 I have following Data Structure Date | Category | Sales Amount ---------------------------------------------------- 01-Sep-2016 | Food | 100 02-Sep-2016 | Food | 120 03-Sep-2016 | Food | 130 01-Sep-2016 | Electricity | 180 02-Sep-2016 | Electricity | 60 01-Sep-2016 | Perfumes | 80 02-Sep-2016 | Perfumes | 40 I want to calculate the Two Week Sales for Each Category, I might add another column like Territory as well in the future. I used following Formula which worked fine if I only select Date