powerpivot

Counting latest instance of multiple only based on filter context

心已入冬 提交于 2020-02-25 09:49:26
问题 I've got a large table of events that have occurred in an inventory of vehicles, which affect whether they are in service or out of service. I would like to create a measure that would be able to count the number of vehicles in the various inventories at any point in time, based on the events in this table. This table is pulled from a SQL database into an Excel 2016 sheet, and I'm using PowerPivot to try to come up with the DAX measure. Here is some example data event_list : vehicle_id event

AAS tabular model in DirectQuery mode performance benefits

允我心安 提交于 2020-02-25 04:33:18
问题 Suppose you have 10 pretty big fact tables (each 50-100 GBs) that should be queried with Power BI. They doesn't fit into Azure Analysis Services RAM (reasonable price). So in order to use tabular model and AAS you have stay with the following schema: (1) Power BI Desktop -> Azure Analysis Services -> [DirectQuery] -> SQL Database But as far as I know from this article, AAS tabular model doesn't cache any aggregated results (means won't imply any additional performance optimizations). Moreover

Optimizing Dax & model for “where date between” type queries

放肆的年华 提交于 2020-01-24 09:46:11
问题 I am building a model to allow reporting on two seperate datasets, for this example we'l say a Students dataset & a Staff dataset. The datasets are pretty seperate and the only real link between the two is Date, so from a model perspective, there is a Students star schema & a Staff Star Schema. The data displayed is snapshot type data, answering questions like: - For a selected date, show all active employees - for a selected date, show all enrolled students This means that when a single date

Made connection to PowerPivot DataModel, how can I fill a dataset with it?

狂风中的少年 提交于 2020-01-17 12:50:10
问题 I was able to connect to the powerpivot datamodel with amo: string ConnString = "Provider=MSOLAP;Data Source=$Embedded$; Locale Identifier=1033;Location=" + ThisAddIn.Current.Application. ActiveWorkbook.FullName + ";SQLQueryMode=DataKeys"; Microsoft.AnalysisServices.Server OlapServer = new Microsoft.AnalysisServices.Server(); and I am able to retrieve the column names but nothing else. How can I fill a dataset from the model or even how can I view the cell values within this datamodel? I have

PowerPivot Hierarchy Detection - Active Projects

廉价感情. 提交于 2020-01-16 20:04:45
问题 Building on Chris Campbell's Article regarding active projects, I'd like to add an extra dimension. My tables reference their own parent matter in a denormalised 2-layer hierarchy. After some calls to the RELATED() function, the main lookup table of projects can look like this: Cases ID | Client | ParentMatterName | MatterName | ClaimAmount | OpenDate | CloseDate 1 | Mr. Smith | ABC Ltd | ABC Ltd | $40,000 | 1 Jan 15 | 4 Aug 15 2 | Mr. Smith | ABC Ltd | John | $0 |20 Jan 15 | 7 Oct 15 3 | Mr.

be careful parts of your document may include personal information that cannot be removed by the Document Inspector

倖福魔咒の 提交于 2020-01-12 02:33:06
问题 I use Excel 2013 and Power View and SQL Server 2008 R2 . After create my Data Source and my chart in Excel When I want save my Excel file I get this message be careful parts of your document may include personal information that cannot be removed by the Document Inspector. What is this warning and how I can remove this message? What are personal information that exist in my Excel File . 回答1: Also ran into that. It seem, after running the Document Inspector in Excel, it will show you this

2nd latest Date - DAX

非 Y 不嫁゛ 提交于 2020-01-07 06:24:05
问题 I have a dataset of users who log into an app. I want to find the # of days between their last two logins. I have the DAX expression to get their last login (latest date) =CALCULATE(Max([Date]),ALL(Table1),Table1[Name]=EARLIER(Table1[Name])) But now I'd like to get their 2nd to last login, and subtract the two. I see some posts about the 2nd to last login, but it puts a blank if there are only two logins, whereas I want the number of days between these as well. 回答1: dcheney , this one is

Sorting portfolios based on criterias

こ雲淡風輕ζ 提交于 2020-01-06 18:38:41
问题 My current table looks like this Company-----year----size-----Exchange A-----------2000-----80-------A A-----------2001-----85-------A B-----------2002------90------C I want to allocate the companies into two categories "Big" and "Small". For a particular year, if the companies size is bigger than the median of the size of the companies in that year in Exchange A, will be called "BIG". something like this, =if([size]>MEDIANX(filter(filter(tbl1,[Year]=A),[Year]),[size]),"Big","Small") I know

SMALL()-Function in PowerPivot

╄→尐↘猪︶ㄣ 提交于 2020-01-06 07:56:29
问题 I am trying to create a measure in powerpivot which should give me the ten lowest prices per article – and then put that measure in a pivottable to see the customer's name behind that price. But I realized there is no such thing in powerpivot then SMALL() as Excel does. Am Did I miss this function in powerpivot or do I need to solve it some other way? 回答1: The RANKX function is what you are probably looking for: MSDN documentation This allows you to create a ranking for a table based upon an

DAX - 2 phased weighted average with 2 different weight measures

那年仲夏 提交于 2020-01-05 05:31:07
问题 I have rather complex problem to expres. In DAX powerpivot I am trying to create measure which will be using two different Weighted averages in one measure based on aggregation level. The problem is complicated even more, because weight measures have different level of duplication (need to apply distinct SUM on them).I have been able to create Distinct SUM Measure1 and 2 to solve that. [Weight_1] = SUMX(DISTINCT(Table1[Level2],[SupportWeight1]) [SupportWeight1] = MAX(Table1[RevenueLevel2])