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

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


Error upgrading PP from 2010 to 2016

$
0
0

Company just moved to Office 2016. Getting this error on a file with a PowerPivot based report:

============================
Error Message:
============================

Specified method is not supported.

============================
Call Stack:
============================

   at Microsoft.Office.PowerPivot.ExcelAddIn.SandboxVersionManager.UpgradeSandbox(DataModelingSandboxAmo sandbox, BackgroundWorker worker)
   at Microsoft.Office.PowerPivot.ExcelAddIn.SandboxVersionManager.UpgradeWorkbook(GeminiWorkbook geminiWorkbook, BackgroundWorker worker)

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

Anyone know which "Specified Method" isn't supported?

I really don't want to rebuild lots of files!

Thanks - JCW

PowerBI Conditional format on String column

$
0
0

Hi Guys,

On power bi I am trying to conditional format string column, it does not show any conditional formation option for string columns other than numeric columns.

Do we have any work around it?

Regards,

Navin


Navin.D http://dnavin.wordpress.com

Last 24 months

$
0
0

Hi !

MY requirement is to display 24 months based on Slicers.

For eg. in slicer if i select 201505. I want to display last 24 months data from 201505 in the Powerpivot report .

Please help me on this.


Geometric Average Based on a Lookup Value

$
0
0

I have a column with 50,000 random four digit numbers, and next to it I have a random number between .90, 1.25

in a new column, I have 100 random four digit numbers. Next to those, I want the geometric average of the random numbers between 0,1 that correspond to the random four digit number. It looks like this:

I tried using an index-match function, but I'm not sure how to incorporate the geometric average aspect into this. Anyone have any ideas? Thanks!

Relationship among 4 tables

$
0
0

Hello there,

I have an issue with Powerpivot and I appreciate any help on this regard.

Basically I have 4 tables: Sales,Sales detail, product info and product subcategory.

I have linked all 4 like this:

Sales 1-->--*  Sales Detail

Product Info 1-->--* Sales Detail

Product subcategory 1-->--* Product Info 

So I want to get Sales by Product subcategory however they are not directly linked. I cannot link them directly because there's no common key.

Is there a workaround this ?

Thanks in advance !

Rgds

Use latest available price to forecast cost of kit

$
0
0

Hi guys,

I am trying to lookup the latest available price based on the Item code and use it to calculate cost in the future. Measure I have so far

SUMX('Latest volume fcst Q', 'Latest volume fcst Q'[Forecasted volume] *

CALCULATE(VALUES('FOB price Q'[SPP]),

FILTER('FOB price Q',

'FOB price Q'[Item code] = 'Latest volume fcst Q'[Item code] &&

LASTNONBLANK('FOB price Q'[Date],1))))
This, however only works when I display the dates for which I do have the price. What I'm trying to achieve is to display dates in the future for which I would calculate the price using the latest available price, e.g. price table has the price for 1/2/16, 1/3/16, 1/4/16. In my pivot I want to show 1/5/16, 1/6/16 and for these dates I'd like the cost to be calculated using the price from 1/4/16.

Thank you very much for your help,

Lucy

Date select not working right

$
0
0

HI,

I'm new to Power BI. I had a dashboard that only pulled current day's data. Worked fine in power bi.

I changed the query to go back three months (from date). That works in power bi , but when I move the slider to June (for example) I get no records even tho there is June data in my results.

I have attached a screenshot I hope will help. I have added my fromdate and todate to both page and report filters. Still won't show any data unless I include the march..? 


If I change the data selector to just june - I get nothing eventho there are June records 


qeqw



powerpivot and leading zeros

$
0
0
Hi- When I try to bring a .csv file, pipe delimited file into PowerPivot 2010, it always drops the leading zeros on text fields. How can I ensure that the fields are imported intact including leading zeros?

hide measured subtotals in Report

$
0
0

I have created a number of measures that calculate subtotals for my Financial Statements. I would like to deactivate the drill down on the subtotal rows on my PowerPivot report.

Is this possible?

Thanks

Frank

When to use ALL function in powerpivot

$
0
0

Hello. Why do you use ALL in the formula below? Vs. not using it? I believe it's a formula to sum actuals for current month. 

Sum Actuals This Month:=CALCULATE([Sum Amount], FILTER(ALL(Calendar), Calendar[Year #] = MAX(Calendar[Year #])),FILTER(ALL(Calendar),Calendar[Month #] = MAX(Calendar[Month #])))

Do Filters get evaluated within pivot field context

$
0
0

Hello. I thought that Filter(ALL) cleared any filters, but it appears that a formula like this (Actuals Same Quarter Last Year to Date) gets evaluated within the context of the pivot table fields. That is, if it shows February, it will calculate 1st quarter through February for last year. This makes sense, but then it doesn't seem like "ALL" is clearing any filters. Thanks. 

Actuals Same Quarter Last Year to Date:=CALCULATE([Sum Amount], FILTER(ALL(Calendar), Calendar[Year #] = MAX(Calendar[Year #])-1), FILTER(ALL(Calendar),Calendar[Quarter #] = MAX(Calendar[Quarter #])), FILTER(ALL(Calendar),Calendar[Month #] = MAX(Calendar[Month #])))

Problem with YTD function

$
0
0
Hello. I'm using this function =CALCULATE(Table1[Contracts],DATESYTD(Calendar[Date])) but it's giving me a cannot be determined in the current context error. I have dates in Table1--1 for each month 1-1/2014-12/1/2015 and then I created a date table (set as date table) and added the same dates in their. I'm not sure why I'm getting this error :(

PowerPivot turns columns with blanks into strings instead of numbers

$
0
0

I have imported data from an Excel table into my PowerPivot data model.  I have several columns that have numbers as well as blanks.  When I try to SUM([Column]) it doesn't work because the column has been converted into a string data type because of the blanks.  When I try to convert the data type to numeric, I get an error message because of the blanks.  If I try normal Excel tricks like "--" or "*1" to try to turn it into numbers, I get an error message because it doesn't want to perform those operations on strings.  This is a really strange problem because it seems like it must be extremely common.

I've even read another post from Scott of TinyLizard that said, " =SUM(Table[AQ1]) should certainly work, regardless of blanks."  In my experience, that is just not true.  The blanks force the column to import as a string, and then mathematical operations simply do not work. 

I also tried this: Value:=CALCULATE(sum([No. of Changes]),ISBLANK([No. of Changes])="FALSE")  This is an attempt to perform the SUM function only when ISBLANK is false.  This also doesn't work, and results in the same error, "The function SUM takes an argument that evaluates to numbers or dates and cannot work with values of type String." 

All I want to do is have the blanks evaluated like zeros.  Why is this so difficult??


BrainE

Help with dotted line in a relationship

$
0
0
Hello. I have a relationship establish but it is showing up as a dotted line. Why? The data table has dates, and the lookup table has unique dates. Do I needto replicate this table since it's already connected to another one? 

Filter results from a Slicer that calls a mesure

$
0
0

I seem unable to filter the data that is derived from my Slicer which uses the SWITCH command to call a measure.

The results of the data are correct except that I cannot filter the information. The measure when used directly works fine, but not when called from a slicer.

the Slicer DAX is as follows:

=switch (TRUE,
Min( Analysis1[ID] ) = 1,
FORMAT([Cascade_Value_All],"$#,#0"))

NOTE. The measure [Cascade_Value_All] works fine on its own and I have no problem filtering, but when I run the measure through the Slicer it brings in unwanted data

Thanks

Frank

Writing out full table name plus field

$
0
0
When do I need to write out the whole table name and field when I'm in the current table for powerpivot? It gives me an error when I just write something like [Contracts] even when I'm in that table and selecting a field with the mouse. Thansk!

Running totals - difference between using numeric and date fields

$
0
0

Hallo,

I have a table Cust_ Ledg_Entry containing a field "Posting Date". I would like to calculate a running total up to the actual date.

This is my formula:

=calculate ( sum([Debit Amount LCY]) - sum([Credit Amount LCY]); filter ( ALL ('Cust_ Ledg_ Entry'[Posting Date]); 'Cust_ Ledg_ Entry'[Posting Date] <= max('Cust_ Ledg_ Entry'[Posting Date])))

When I include a slicer for the year, this formula returns only the running total for that year and not up to and including that year.

I changed the formula to use the field "Posting Year" instead. (Posting Year is just year(Posting Date)) and it works

=calculate ( sum([Debit Amount LCY]) - sum([Credit Amount LCY]); filter ( all ('Cust_ Ledg_ Entry'[Posting Year]); 'Cust_ Ledg_ Entry'[Posting Year] <= max('Cust_ Ledg_ Entry'[Posting Year]))).

Why doesn't it work for the date field??

I tried using a date table and joined in with my 'Cust_ Ledg_ Entry' but it made no difference.

I would really appreciate some help here.

SSAS Tabular joins on varchar columns - performance impact

$
0
0

I started of building models using SSAS tabular and everythign worked great. But as expected, as the size and complexity of the model has grown performance is definitely taking a hit. 

Apart from looking at hardware requirements, I was wondering how much of an impact would converting all varchar/text based joins to integer joins would help. 

e.g. I have an employee ID field that is supposed to be 8 characters and is usually viewed that way e.g. instead of 12345 people prefer to see it as 00012345. 

I've therefore kept it as a char field with length 8 and used it in the joins. 

Would it help if I create a separate numeric ID field in my view and import that and use that for the joins in the model instead? 

Power Pivot for Excel 2010 and 2013 (.xlsx) ~ Enterprise Edition Feature??

$
0
0

HI,

On the SQL Server 2016 Features

@ msdn.microsoft.com/en-us/library/cc645993.aspx#Anchor_21

it states that: Power Pivot for Excel 2010 and 2013 (.xlsx) requires Enterprise Edition of SQL Server

Now this is a bit confusing as the section implies that you need SQL Server 2016 Enterprise edition to install the power pivot add in for excel.

we are looking to use power pivot for creating data models for uploading into a tabular analysis services and then consume them with power BI

What is this section referring to and is there anything in my approach that I cannot do with 2016 STD edition?

regards

Andy

Viewing all 4715 articles
Browse latest View live