Comments for Kasper de Jonge PowerPivot Blog » Kasper de Jonge PowerPivot Blog Bringing BI to the masses Mon, 24 Nov 2014 20:08:57 +0000 hourly 1 Comment on Dump the results of a DAX query to CSV using PowerShell by Pavel Mon, 24 Nov 2014 20:08:57 +0000 Hi Kasper,

I tried to modify your script to dump data from XLSX Data Model (PowerPivot) to CSV. But method $adapter.Fill($dataset) failed.

Could you help to specify ConnectionString to connect correctly to XLSX Data Model 2013?

— Pavel

Comment on Export a table or DAX query from Power Pivot to CSV using VBA by Pavel Sat, 22 Nov 2014 11:37:16 +0000 Hi Kasper,

Nice article, thanks.

Actually I am triyng to run your code, but it failed.

Error is “An error occurred – Automation error”.

Code string that failed is: “rs.Open sQuery, wbTarget.Model.DataModelConnection.ModelConnection.ADOConnection”.

Could you help me?

Comment on PowerPivot Denali new DAX function to rank (RANKX) by David Thu, 20 Nov 2014 17:36:27 +0000 Hello,

I’m having a problem when i have NEGATIVE net sales.

When i rank by sales person within the region, and the sales person has had negative net sales (more returns than sales), the ranking that it gives me is that of the total population, not within its own regions.

Region 1 has 30 sales people, but the whole organization has 90 sales people. Two of Region 1’s salesmen have negative sales. When i use the following formula, it will return 89 and 90 for these two individuals, instead of 29, 30. (even though i am pivoting by selling region).

=RANKX(ALL(SalesAnalysis[sa_rep_name]), [sa_Net Sales], , 0, skip)

Any help is appreciated!

Comment on Determine the min value over rows in a group using MINX in PowerPivot by Rafael Sun, 16 Nov 2014 02:21:36 +0000 Great work! I was wondering if there is a way using the same data to return only the continents with their calculated min value and it’s related country… The problem related to the min value is solved as showed in this post… But how to show in a specific column which country is related to that min value?

Comment on Import data from TFS online into the data model through Power Query by Marc Wed, 12 Nov 2014 12:16:27 +0000 When I try to do this (also by the browser) I get “Not found – The TFS Project Collection named DefaultCollection was not found.”


Comment on Ask your questions here by Thomas Wed, 12 Nov 2014 02:59:49 +0000 Chris,

Your insight and directions on Anthony’s issue were so-right-on-the-money.

Have you ever thought about teaching this stuff?

Comment on Ask your questions here by Thomas Wed, 12 Nov 2014 02:29:52 +0000 Anthony,

I think this is where Chris is trying to steer you:

YTD Last Year:=CALCULATE([Value Sale YTD], DATEADD(Dates[Time],-12, MONTH))

The CALCULATE references [Value Sale YTD] and [Value Sale YTD] explicitly defined that the year end was June 30.

It works.

Comment on Ask your questions here by Chris Gilbert Tue, 11 Nov 2014 18:21:06 +0000 Have you looked at Kasper’s write-up on this?

Maybe that will help.

Comment on Ask your questions here by anthony good Tue, 11 Nov 2014 18:13:58 +0000 Hi Chris

Thanks for the response.

Yes i see.. i must be having a mind blank at present, as how do i make the “ytd last year” relate to the “value sales ytd”. I tried simple to do “value sales ytd” minus 12 months but it didnt work.


Comment on Ask your questions here by Chris Gilbert Tue, 11 Nov 2014 17:29:41 +0000 Anthony,
Your “YTD Last Year” measure (calculated formula) doesn’t make any reference at al to the “Value Sale YTD” measure, or contain any information that the model would know that your year starts in July (your “30-06″ value). There has to be a common point of reference… The two don’t know anything about each other!