Quantcast
Channel: Power Pivot forum
Viewing all 4715 articles
Browse latest View live

Getting details from Excel

$
0
0

Sorry, guys, you have been very helpful before, and I need help again!

I have a series of worksheets in an Excel workbook, let us all them SheetA, SheetB, SheetC etc.

Each has the same basic query on it but pulling in detail from different sources as specified by a parameter on the worksheet.  The parameter is in a table with a local range name, so is accessed in the query by code like this:

Parameter = Excel.CurrentWorkbook(){[Name="SheetA!Parameter"]}[Content]

Easy enough so far but:

1.  This breaks if the user changes the sheet name 

2.  Whilst the query gets copied across to a new worksheet, if the worksheet is copied, the sheet name in the code does not change but continues to refer to the old sheet

What I need is something similar to:

Parameter = Excel.CurrentWorksheet(){[Name="Parameter"]}[Content]

but I  can't see how to get that effect. 

M


CubeValue formula returns #N/A when linked to a data validation list

$
0
0

Hello,

I've built a report using CubeValue formulas for comparing Monthly Target to Month Actual and the formula references cells for the Financial Year value and the name of the clinic.  When I change the cell referencing the Clinic Name to a cell with a Data validation List, the formula keeps working fine.  However, then I change the cell referencing the Financial year to a cell with a Data Validation List, the formula returns a #N/A.

This is my Cubevalue formula =CUBEVALUE("ThisWorkbookDataModel","[Measures].[No MBS Items]","[Table_MBS].[KPI].&["&$AB8&"]]","[Calendar].[Period].&["&AC$5&"]","[Calendar].[FinYear].&["&$Z$35&"]","[Place].[Place].&["&$Z$37&"]")

Cell Z35 is the reference cell for Financial Year and Z37 is the cell that references the Clinic Name

Does anyone have any idea why changing the cell from Financial year to a data validated cell creates the error?

Studio Dax Add In to Excel PP 2019

$
0
0

Is DAX Studio compatible with Excel 2019?

If so, how does one "Add-in"? I have tried the usual route of adding via File Options, but it doesn't appear anywhere. What am I doing wrong?

Cheers

Power Pivot DAX editor autofill doesn't work

$
0
0

Hi experts, I'm using Office 365 and version is 1810.

I'm not sure what happened with the update, but DAX editor appears weird with auto-fill.

For example, it always tries to autofill the closing parentheses when I click "Enter", but I just want to change line. This is super annoying, which means I cannot format my code correctly. I have to type ")" deliberately, hit "Enter" and then remove the ")".

Intellisense doesn't always work as intended. This is probably not a bug, but just annoying, for example the function accepts atable as the first parameter, and immediately editor shows me all functions starting from ABS(), which doesn't make a lot of sense because (at least the manual says) ABS() only returns values, not tables.

Also "Tab" brings too much intellisnese, it doesn't behave like this in Visual Studio. In VS you can tab multiple times without autofilling anything. But this one is OK, VS is a mature product and DAX editor is not. So just saying.

Another thing about tabbing: If I typed, e.g. KEEPF and then use tab to get KEEPFILTERS(, then I have to left click in the editor, otherwise I cannot write the rest of the code. THis should be a bug I guess?

I'm not sure when can we see a proper DAX editor in Excel. Your focus seems to be in Power BI (its DAX editor has some improvements but still lacks a lot of basic functionalities) but hey we are also paying subscription for Excel 365, please don't forget about us.


Import mode or DirectQuery?

$
0
0

Hi all,

I am new to Power BI. I am from Sql Server BI backgraound. 

I work with large data warehouses and cubes.

Keeping this in mind, I have a question.

My database is Sql server.

Which mode is best fit in power bi? Import or DirectQuery?

I have googled on this and found confusing answers. I am asking this question based on real time project.

Please reply

Out of Memory Exceptions with Data Model with tiny Dataset

$
0
0
I am experiencing issues, even after repairing office, with my datamodel failing to load du e to out of memory exception. I'm able to load power query results to a table in a workbook but not to the datamodel. The dataset i am attemptin to load is 1500 (approx) records with fewer than 10 columns. Can you advise?

There isn't enough memory to complete this action. Try using less data or closing other applications.

$
0
0

I need help in resolving a consistent error that i am receiving. I am sure this issue is faced by a number of users and i have googled for a favourable resolution but haven't found one.

 

My system configuration is :

 

  • OS : Windows 10 (64 bit)
  • Memory : 8 GB RAM
  • MSOffice : Office 2016 Pro (64 bit)
  • 109 GB Free out of 236 GB Storage.

 

and i have performed all these steps:

 

  • Page File Size (Minimum MB) : 12888 MB
  • Page File Size (Maximum MB) : 49152 MB
  • "Disable Hardware Graphics Accelaration" is checked.
  • "Ignore other applications that use Dynamic Data Exchange (DDE)" is checked.
  • repaired Office 2016 Pro.
  • reduced number of columns from 300 to only 10 columns.
  • removed all unique columns like ID columns etc.
  • using Single column Dimension tables
  • Facts table "fData" was formed by combining multiple csv files and unpivoting some of the columns.
  • No sort is applied by me on Facts table "fData", other than the original sort as coming in the csv's.

 

I am using PowerQuery to import 1.12 GB of external CSV data from multiple CSV files. After transforming that data by removing unnecessary columns, changing formats etc and adding to PowerPivot Data Model, the size is now reduced from 1.12 GB to 700 MB and now to 200 MB now.

 

When i use normal Pivot in-built calculations like Counta, DistinctCount, Sum etc the powerpivot works fine, but when i try using DAX expressions, the powerpivot or Excel gives me the following error:

 


 

e.g. as simple as a : 

 

 

ISFILTERED(dDate[Year])

OR 

UniquesCount:=

// get unique Char values
VAR _Chars = VALUES ( fData[Char Value] ) 

// Filter fData table based on only the unique Char values
VAR _CharsAll =
 CALCULATETABLE ( 
	fData, 
	_Chars, 
	ALL ( dDate[Year] ), 
	ALL ( dDate[Date] ),
	ALL ( dCountry[Country] ), 
	ALL ( dCategory[Category] ), 
	ALL ( dBrandOwner[BrandOwner] ), 
	ALL ( dBrand[Brand] ),
	ALL ( dSubBrand[SubBrand] ),
	ALL ( dInnType[InnType] ),
	ALL ( dInnSubType[InnSubType] ),
	ALL ( dCharDescription[CharDescription] )
)

// 
VAR _CharsSummary =
	GROUPBY ( 
		_CharsAll, 
		fData[Char Value],
		"MaxYear", MAXX ( CURRENTGROUP (), RELATED ( dDate[Year] ) ),"MinYear", MINX ( CURRENTGROUP (), RELATED ( dDate[Year] ) ),"NrOfChars", COUNTAX( CURRENTGROUP (), fData[Char Value] )
 )

//
VAR _SameYearChars = FILTER ( _CharsSummary, [MaxYear] = [MinYear] )

RETURN SUMX( _SameYearChars, [NrOfChars] )

 

If i also try to create Hierarchies in Relationship pane between columns in my Facts table, i get the following memory error:

task managermemory error message

 

My CPU, memory and/or disk usage spike to 100% when this error results and Excel RESTARTS everytime. I saw some posts mentioning that if i apply a sort on some column, then size should reduce and measures should perform better. But which columns do i need to sort and sort which tables?

How can this be resolved correctly so i can use the above measures?


Regards. ~~SiFaR~~

Dax Cubevalue

$
0
0

So I have an issue with cubevalue behaving consistently from a DAX expression in my tabular SSAS cube.  The measure is:

RunningTotalLCYPeriodStart:=CALCULATE([Amount], FILTER( ALL('PostingDate'[FinancePeriodStartDate]),'PostingDate'[FinancePeriodStartDate] <= MAX('PostingDate'[FinancePeriodStartDate])))

Using a pivot to connect to the model I have no issues and the data is displayed correctly.  When I convert this pivot to OLAP formula's or I try to manually create cubevalue formulas it either provides me with the value for only that filter data (in my case Period and Year) or it does under other circumstances provide me with correct values e.g. (ignore total in bold as I havent included all the rows that make this up).

Anyone had similar issues?

Pivot results

Row Labels Amount RunningTotalLCYPeriodStart
Accruals -277,369 -277,369
12/31/2017188,745188,745
1/28/2018-399,094-210,349
2/25/2018378,842168,493

Cubevalue results:

Row LabelsAmountRunningTotalLCYPeriodStart
Accruals-277368.9-277368.9
12/31/2017188745.21188745.21
1/28/2018-399094.21-399094.21
2/25/2018378841.84378841.84


mbutlin


ACCUMULATED - MAKE EVERY MONTH OF THE AXIS X THE ACCUMULATED 12 MONTHS

$
0
0
Guys, good morning.

I'm trying to create accumulated measure but I'm not getting it. Actually it's a different accumulation, since I want it to show me on the x axis the last 6 months and the value of each month is the accumulated 12 months back.

ex:

the X Axis contains 6 months (June / 18, July / 18, August / 18, September / 18, October / 18, November / 18). The value that will show in June / 18 is the sum of July / 17 until June / 18 (last 12 months), the amount that will show in July / 18 is the sum of August / 17 until July / 18 (last 12 months) and so on. That is, each month it makes the accumulated 12 months back. can you help me?

I have attached a file to make it base to make the formula. I put a page filter with a relative date of the last 6 months, but I can not do this accumulation.

Thank you,
Mattheus

Error upgrading PP from 2010 to 2013

$
0
0

Hi all,

I try to update my PP model from 2010 to Excel 2013 but I have the following error. I don't know what to do. Please helpppp

============================

Error Message :

============================

Exception de HRESULT : 0x800A03EC

============================

Pile des appels :

============================

   à System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

   à Microsoft.Office.Interop.Excel.OLEDBConnection.Reconnect()

   à Microsoft.Office.PowerPivot.ExcelAddIn.InProcServer.LoadSandboxAfterConnection(String errorCache)

============================

Getting an error using DATESBETWEEN

$
0
0

Hi folks;

Here's my statement

IF(DATESBETWEEN(CollabReviews[CreationDate], IterationTimeline[Start Date], IterationTimeline[End Date]), IterationTimeline[Iteration], "N/A")

Table CollabReviews has a column called CreationDate and it might contain multiple review with the same creation date.

Table IterationTimeline has the following columns [Iteration], [Start Date], [End Date]. Iteration is a text field with unique values and both [Start Date] and [End Date] are Date fields with unique values.

I need to create a new column in table CollabReviews with the content of the [Iteration] field from table IterationTimeline.

The above statement returns the following error "A single value for column 'Iteration' in table 'IterationTimeline' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.".

Any ideas as to what I am doing wrong?

I truly appreciate the time and effort you put in to help me out on this one. Thanks in advance.


Thanks Ron...

Assign a characteristic to a calculation

$
0
0

Hello,

I have many measures (f.e. GDP:=sum([total rev])...) and I want some of these measures to have assign a characteristic (f.e. CF, or PL, or BS). Is there a way to map a measure to a characteristic in a data model?

Thank you in advance

How to calculate sales for selected months on slicer?

$
0
0

Hi,

I am using Adventureworks database in Power Pivot in Excel 2016. I want to calculate sales only for specific months in a year starting from the first month (Jan) to any month that is selected on slicer which can be a "Jan", "Feb" OR 1, 2, 9 format.

I have written the following measure but every time I want to see a different month I need to change the DAX measure.

Eg:

TillSeptemberSales :=
CALCULATE ( [TotalSales], 'Calendar'[MonthNo] >= 1 && 'Calendar'[MonthNo] <= 9 )

I tried the following one but failed as it is throwing an error

TillSeptemberSales :=
CALCULATE ( [TotalSales], 'Calendar'[MonthNo] >= 1 && 'Calendar'[MonthNo] <= [SelectedMonthNo] )

Any better solution?

Thanks in advance


ArjunMShetty

The following DAX formula in invalid

$
0
0

Hi,

In a certain workbook, when I write a calculated field formula as simple as =SUM(Purchases[Quantity]), I get a message saying that the "The following DAX formula is invalid".  This problem is happening only in this workbook.  In the same workbook, I can drag other DAX formulas to the PowerPivot without any problem.  All my slicers and CUBE formulas are working fine as well but I am not being able to write any new calculated field formula.

This problem occurred only after latest Office and Windows updates were installed today.  I doubt this is an update related problem though because if that had been the case, then I would have been unable to write new calculated field in other workbooks.

I am using Office 365 version 16.0.6741.2048

Any help would be greatly appreciated.


Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com

Power Pivot not loading in Excel 2010

$
0
0

Power Pivot had been running without any issues. Now suddenly it is no longer loading within Excel 2010.

Ran a repair on the app and then checked Comm Add ins and ticked it but still no go.

I have .Net 4.7.2 installed along with Visual Studio Tools for Office 2010 and ran repairs on both without without any success.

Tried the fixes mentioned here (https://social.technet.microsoft.com/Forums/lync/en-US/09082987-ffe3-45ba-b5bc-5f9e10c140ee/powerpivot-not-loading-not-visible-on-the-ribbon?forum=excel) already. Output from error message is upon startup of excel is below.

Been an issue for a few days now so any assistance will be much appreciated..... Thanks in advance

Could not load file or assembly 'Microsoft.AnalysisServices.Modeler.Storage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)


************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AnalysisServices.Modeler.Storage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
File name: 'Microsoft.AnalysisServices.Modeler.Storage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
   at Microsoft.AnalysisServices.Modeler.FieldList.ThisAddIn.ThisAddIn_Startup(Object sender, EventArgs e)
   at Microsoft.Office.Tools.AddIn.OnStartup()
   at Microsoft.AnalysisServices.Modeler.FieldList.ThisAddIn.FinishInitialization()
   at Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase.Microsoft.VisualStudio.Tools.Applications.Runtime.IEntryPoint.FinishInitialization()
   at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.ExecutePhase(ExecutionPhases executionPhases)
   at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.CompleteInitialization()
   at Microsoft.VisualStudio.Tools.Office.Internal.OfficeAddInAdapterBase.ExecuteEntryPointsHelper()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8805 (QFE.050727-8800)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Runtime.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8803 (QFE.050727-8800)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll
----------------------------------------
System.AddIn
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5446 built by: Win7SP1GDR
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll
----------------------------------------
Microsoft.AnalysisServices.Modeler.FieldList
    Assembly Version: 10.0.0.0
    Win32 Version: 10.50.4000.0 ((KJ_PCU_Main).120628-0827 )
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Analysis%20Services/AS%20Excel%20Client/10/Microsoft.AnalysisServices.Modeler.FieldList.DLL
----------------------------------------
Microsoft.Office.Tools.Common.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.v9.0.dll
----------------------------------------
Microsoft.Office.Tools.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Tools.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.v9.0.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.Office.Interop.Excel
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.4756.1000
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0.dll
----------------------------------------
System.AddIn.Contract
    Assembly Version: 2.0.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.AddIn.Contract/2.0.0.0__b03f5f7f11d50a3a/System.AddIn.Contract.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Contract.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Contract.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Contract.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Contract.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Contract.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Contract.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.60724.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Contract.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Contract.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.7079
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0.dll
----------------------------------------
office
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.4760.1000
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/14.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
Microsoft.AnalysisServices.Common
    Assembly Version: 10.0.0.0
    Win32 Version: 10.50.4000.0 ((KJ_PCU_Main).120628-0827 )
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Analysis%20Services/AS%20Excel%20Client/10/Microsoft.AnalysisServices.Common.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8773 (QFE.050727-8700)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------


Dax Expression Based on SQL Queries

$
0
0
I'm looking for a DAX Expression for the following SQL Queries

SELECT sum(CA) AS CA
FROM(
SELECT 
    CATEGORIE,
    SUM(CA) AS CA
FROM ACHATS 
WHERE ANNEE = 2018
AND FOURNISSEUR = 'AKZO NOBEL'
AND INDEPENDANT = 0
GROUP BY CATEGORIE)x
I tried this so far, but it is not working.

CALCULATE (
    SUM ( ACHATS[CA] ),
    ALLEXCEPT ( ACHATS, ACHATS[CATEGORIE] ),
    ACHATS[ANNEE] = "2018",
    ACHATS[INDEPENDANT] = 0
)

Case Statement in DAX

$
0
0

Good Morning

I am trying to get maximum date for certain description type for each product. I know how to do this SQL but someone can one please guide to write it in DAX

select Product ,

max(case when Description in ('Toys','Table','Shirts' and Type<>'Not Needed' then Date end) OVER(PARTITION BY Product) as XYZ_Date ,

max(case when Description in ('Soap','Shampoo','Shoes' then Date end) OVER(PARTITION BY Product) as XYZ_Date from TableName

Thanks 


SSIS master package cannot finish

$
0
0

Im exporting 3 sql tables to 3 excels. Child packages alone in SSIS run OK. I have master package with 3execute package tasks where I run these 3 packages. Master package child packages finish successful, but if I look into each data flow of child packages I can see that are still running. And they run infinite.

Result of the package is correct, there is no error in log output, but this infinite running of data flow is confusing. 

Any ideas why is this happening?

master package:

child package control flow:

child package data flow:

Programmatically modify data source for Excel PowerPivot

$
0
0

I am working on a project that uses PowerPivot in Excel with Access database as data source via OLEDB. As PowerPivot does not support relative path when defining data source, I am trying to write a small utility in C# that would update the data source based on deployment location. It appears that theMicrosoft.Office.Interop.Excel component provides API for that. However, I get an InteropServices.COMException when trying to set the property of OLEDBConnection.Connection. Here is the test code:

Microsoft.Office.Interop.Excel.Workbook myBook = null;
Excel.Application myApp = null;
string workbook = @"c:\temp\test.xlsx";
string constr = "OLEDB;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\temp\\testdata.mdb;Persist Security Info=false\0";

myApp = new Excel.Application();
myApp.Visible = false;
myBook = myApp.Workbooks.Open(workbook);
object index = 1 as object;
Excel.OLEDBConnection dbConn = myBook.Connections.Item(index).OLEDBConnection;
object conn = new object();
conn = (object) constr;

// exception is thrown at this statement
dbConn.Connection = conn;

I also try VBA in Excel. It fails as well. Here is the VBA code in Excel:

Dim conStr As Variant
Dim curConStr As Variant

curConStr = ActiveWorkbook.Connections.Item(1).OLEDBConnection.Connection

conStr = "OLEDB;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\caps96\Systems\TranHist.mdb;Persist Security Info=false"

ActiveWorkbook.Connections.Item(1).OLEDBConnection.Connection = conStr

Based on the API documentation or the info from Object Browser, the Connection property of OLEDBConnection appears to be a read/write property. Am I missing something here? Any suggestion would be greatly appreciated. Thanks.



Refreshing Power Pivot

$
0
0
When users try to refresh their data into Power pivot, sometime data doesn't refresh and they're having to close Excel or Excel shuts down without any warnings. Power Pivot is connected through a data model in Excel which is using another Excel file that contains data and uploaded through connection only feature. Please can you help us to resolve this issue and thank you for your help.
Viewing all 4715 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>