powerbi

DAX FORMAT function cause cartesian product on Power BI visual

纵然是瞬间 提交于 2021-02-20 03:50:22
问题 I have the following SSAS Tabular model defined: On the Product table, I have the following measures defined: DeliveryQty2018:= CALCULATE ( SUM ( PurchaseDelivery[PurchaseOrderQuantity] ), ( PurchaseEstimatedWarehouseArrivalDate[PurchaseEstimatedWarehouseArrivalYear] = 2018 ) ) DeliveryQty2019:= CALCULATE ( SUM ( PurchaseDelivery[PurchaseOrderQuantity] ), ( PurchaseEstimatedWarehouseArrivalDate[PurchaseEstimatedWarehouseArrivalYear] = 2019 ) ) Sum DeliveryQty 2018-2020: = FORMAT(

How do I properly use table.group in a PowerQuery query to dynamically summarize different rows and columns?

陌路散爱 提交于 2021-02-19 08:32:33
问题 I created a table in Excel 2016 where I put various names of columns, columns I wanted to summarize, names to set new column names to, etc. Essentially what I wanted to be a parameter table. I then created a function in the Power Query editor and passed the values in the aforementioned table into the function. At first it failed, but I found Power Query column name as parameter which showed me how to pass one of the column names to a parameter. On first glance the group function seemed to

Filter Power BI report based on current user

北城余情 提交于 2021-02-19 05:39:12
问题 We're currently developing a Power BI Dashboard (Office 365) for our company and would like to tailor the information on the dashboard based on the current user's preferences. Our company has multiple departments and sub-departments, so to display every department's figures to all users would be counter-productive. For example if Bob is in Sales for Europe - he'll only see European sales, while Sue will only see Sales for America. Is there a way PowerBI can identify the current user and then

PowerBI: Split column in to separate columns

风流意气都作罢 提交于 2021-02-19 01:32:13
问题 I have a category multiselect field which i'm importing, which has multiple values separated by a comma: Agriculture, Microfinance, Peace Building My primary instinct is to split each value in to a separate column using text functions, but i'm wondering if there's a better, easier way of doing this? 回答1: Ok, found it! Opened Edit queries in the data view, right click the column, Split Column > By delimiter 来源: https://stackoverflow.com/questions/37832748/powerbi-split-column-in-to-separate

PowerBI PDF Export Random White Space - Padding

落爺英雄遲暮 提交于 2021-02-17 07:01:53
问题 Power BI Desktop Pro Version : Exporting a PDF is adding some random padding around the PDF I've tried messing with all the display options Fit to Page, fit to width, actual size but no cigar. has anyone played around with this with a solution? nothing really came up from google searches..? The image is set via the filter pane and page background property. current resolution is set to 1440 x 1024 pixels. 回答1: The gaps are the default PDF margins, so it is rendering the report correctly and

Power BI Report with Bridge Table

≡放荡痞女 提交于 2021-02-17 02:42:30
问题 I am trying to use Power BI with my SQL DB. We have a three layer structure A Main table, with information about the year and unique key for each firm A bridge table which an information about the type of the firm Many end Tables with information about sales and stuff On some occasions these end tables are jointly used by different firm types and some only by one firm type. When I load the tables into Power BI all the relationships are correctly imported and I was expecting no issue to create

DAX - formula referencing itself

删除回忆录丶 提交于 2021-02-15 05:10:59
问题 I am struggling to recreate the following Excel logic in DAX: Cont and CF are both data columns (sourced from SQL database), while A value is dynamic as it comes from What-if analysis: As you can see on the screenshot, A measure doesn't properly calculate the values for year > 2021. I simply fail to understand how the formula can reference "itself" (i.e. previous row's result). I tried to play with EARLIER function but it doesn't seem to work with measures. I also tried to create a calculated

DAX - formula referencing itself

半腔热情 提交于 2021-02-15 05:10:21
问题 I am struggling to recreate the following Excel logic in DAX: Cont and CF are both data columns (sourced from SQL database), while A value is dynamic as it comes from What-if analysis: As you can see on the screenshot, A measure doesn't properly calculate the values for year > 2021. I simply fail to understand how the formula can reference "itself" (i.e. previous row's result). I tried to play with EARLIER function but it doesn't seem to work with measures. I also tried to create a calculated

How to create a new column converting date to text

本秂侑毒 提交于 2021-02-11 15:07:44
问题 I need to create a new column with an IF . If the difference between two dates is more than a month I have to use a text-like "much time" but if it is not I have to show a date. So the date must be converted to a string to use a text column. How can I convert date to text? Fecha_real = IF( DATEDIFF(ventas[fecha_pedido]; ventas[fecha]; month) = 1 ; "much time"; ConvertToTextInSomeWay ventas[fecha] ) 回答1: This is pretty simple with the FORMAT function.. For example, FORMAT(ventas[fecha], "Short

How to show AVG value in Matrix Widget along with Total in Power BI

萝らか妹 提交于 2021-02-11 14:58:12
问题 I am using Matrix Widget in Power BI where I am showing day wise COUNT along with SUM of Row and SUM of Column as shown in the image below. Here what I want is along with Total I need to show AVG as well both Row and Column wise as shown in image below How to achieve this, I tried creating new Column and new Matrix but not getting the desired output. 回答1: First, add the same value column to the Value field as I marked 1 and2 2 in the below image. My case, I have added the column Sales twice