powerpivot

How to SUM a Column based on another column in DAX Powerpivot

我怕爱的太早我们不能终老 提交于 2019-12-07 12:02:25
Here is the example, +------+----+ | CARS | 3 | | CARS | 4 | | CARS | 6 | | CARS | 76 | | CARS | 4 | | CARS | 3 | | SUV | 32 | | SUV | 3 | | SUV | 3 | | SUV | 2 | | SUV | 3 | | SUV | 5 | +------+----+ I want to add a new calculated column with data like this +------+----+------+ | CARS | 3 | 96 | | CARS | 4 | 96 | | CARS | 6 | 96 | | CARS | 76 | 96 | | CARS | 4 | 96 | | CARS | 3 | 96 | | SUV | 32 | 48 | | SUV | 3 | 48 | | SUV | 3 | 48 | | SUV | 2 | 48 | | SUV | 3 | 48 | | SUV | 5 | 48 | +------+----+------+ Where it would sum up the number column for the type of vehicle. What would be the DAX

PowerPivot can't connect to OData WebAPI

淺唱寂寞╮ 提交于 2019-12-07 01:57:20
When I try to connect to my localhosted Odata WebAPI from Excel 2010 PowerPivot I got 404: Not found error. Actually, PowerPivot can explore the list of my endpoints and says that connection successful. But when I press Finish button it shows 404. Strange, but Fiddler captures nothing! Please suggest. Thank you! 来源: https://stackoverflow.com/questions/21677331/powerpivot-cant-connect-to-odata-webapi

MDX syntax for DAX measures calculated with AVERAGE()

折月煮酒 提交于 2019-12-06 07:17:20
I have the following expression in Excel that works fine. =CUBESET("ThisWorkbookDataModel", "TopCount( [ProductBV].[Product Name].Children,10, sum( ( [Calendar].[Week Ending].[All].[1/6/2013]:[Calendar].[Week Ending].[All].["&TEXT($E$2,"m/d/yyyy")&"], [ProductBV].[Moderation Status (ALL)].[All].["&$E$3&"] ), [Measures].[Product Review Count] ) )", "Top 10 to date") The Product Review Count measure using the following DAX formula. Product Review Count:=COUNTROWS(ProductBV) However, when I change the DAX measure to one that utilizes an AVERAGE function (Product Avg Review), the CUBESET function

Accessing MySQL DB into Excel 2010 powerpivot

喜夏-厌秋 提交于 2019-12-06 03:47:32
问题 I have a MySQL DB on hostmonster.com and I am trying import data in excel powerpivot, but having hard time connecting to it. Does anyone know if Excel powerpivot can even connect to MySQL? Error I am seeing Unable to retrieve list of databases. Reason: Failed to connect to the server. Reason: Login timeout expired A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and

DAX / PowerPivot query functions to spread aggregated values over time period

倾然丶 夕夏残阳落幕 提交于 2019-12-05 00:54:14
问题 I’m trying to work out the DAX expression [for MS PowerPivot in Excel 2010] to evenly distribute the sum of a value across the range it’s applied to, and re-sum that up for a given time span/period. It’s trivial to cross-apply in SQL server, though with every attempt, end up with the same wrong result. I’ve got the output from MS Project saved as Excel and imported/transformed using PowerQuery, so the start and finish/end dates are proper dates, the {X}h and {Y}d are integers, and the

Accessing MySQL DB into Excel 2010 powerpivot

♀尐吖头ヾ 提交于 2019-12-04 09:11:41
I have a MySQL DB on hostmonster.com and I am trying import data in excel powerpivot, but having hard time connecting to it. Does anyone know if Excel powerpivot can even connect to MySQL? Error I am seeing Unable to retrieve list of databases. Reason: Failed to connect to the server. Reason: Login timeout expired A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books

Find rows relative to current row's value in excel (DAX)

前提是你 提交于 2019-12-04 04:52:32
问题 Is there a way to filter rows based on your current row's value using DAX (I'm using power pivot) ? In other words, If I had a table "progress" with 'ID' that is incremented in each row, and a 'Percentage' columns and another table containing I want to create a column called old percentage = percentage of (progress[ID] -1) Is this possible in excel ? I couldn't find any straightforward command in this, and excuse me if there were, I am still new to power pivot. My way of doing it is perhaps

Extracting raw data from a PowerPivot model using Python

偶尔善良 提交于 2019-12-03 02:28:13
What seemed like a trivial task turned into a real nightmare when I had to read in some data from a PowerPivot model using Python. I believe I've researched this very well over the last couple of days but now I hit a brick wall and would appreciate some help from the Python/SSAS/ADO community. Basically, all I want to do is programmatically access raw data stored in PowerPivot models - my idea was to connect to the underlying PowerPivot (i.e. MS Analysis Services) engine via one of the methods listed below, list the tables contained in the model, then extract the raw data from each table using

VBA code to filter a pivot table based on the value in a Cell

北城余情 提交于 2019-12-02 13:11:20
I’ve searched and tried everything I could find on how to filter a pivot table via VBA code referencing the value of a cell. The table only has one filter and it’s called “name”, this table is part of a score card that I’m putting together and the pivot itself is named “data” the sheet is named “report” and the cell I’m referencing is A5. I’m able to do simple things in VBA and have been using it here and there for a couple of years however this one thing has me pulling my hair out. Could someone please break this down to me in simpleton terms First up, a couple of alternatives to VBA, in case

DAX Measure if client has bought product A or B later

隐身守侯 提交于 2019-12-02 11:18:46
I need a DAX measure which shows me a flag (1 or 0) if a customer (DimCustomer) bought the product "A" someday (for the first time) and later (doesn't matter when) have bought or product "B" or "C". Measure1: Flag (1 or 0) in their customer names if bought Measure2: When was the first time that they bought product B or C Basicly I have a FactSales, DimCustomer, DimDate and Dimproduct Can someone help me? 来源: https://stackoverflow.com/questions/51948638/dax-measure-if-client-has-bought-product-a-or-b-later