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

"Change Data Source" feature disabled for Pivot Table on PowerPivot in Excel 2013

$
0
0

Hi,

It seems like the "Change Data Source" feature of Pivot Tables is disabled in Excel 2013 when they are built on the Data Model (PowerPivot).

To reproduce: just create a simple table in Excel, add it to the data model, build a pivot table on the data model, and try changing its data source: the option is disabled (greyed) in the ribbon.

Anybody has a tip on how to resolve that?



Power maps - not recognize Postal Codes

$
0
0

Dear colleagues,

I have been trying to upload a list of postal codes (with 5 digits, text format) from France and Spain and the powermaps just recognize 55% of them. Is it normal? Im not an expert on powermaps but i have used before (with less data) and it worked well.

Do you have any tip to solve this?

Power BI : Dynamically change measure or Column name in power BI

$
0
0

I have a slicer with week and year names. 

I have created a measure and a column to show a certain week's data. However, I need to show the week name as selected in the slicer. Is this possible to do in Power BI?

I have attached the <g class="gr_ gr_251 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="251" id="251">dax</g> <g class="gr_ gr_258 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="258" id="258">i</g> used to create measure & column. Here If the slicer selection is 2019 - WK10 then the column/measure name should be 2019 - WK10 as well. Please let me know if this is possible or not in Power BI. If yes, how can I achieve this?

2019 - Wk11 =
CALCULATE (
    SUM ( RevenueAndProfit[GrossProfit] ),
    ALLSELECTED ( DimCalendar[CalendarWeekCaption] )
)

Thank you,

Success

success@gritfeat.com

Looking for DAX function to separate date\time

$
0
0
Hello,
I have cell with a date and time in the following format:
2011-02-01 00:00:00.937
I am trying to figure out how to separate the date and the time from each other in seeparate columns

Any assistance, would be appreciciated.
Thanks,
Nathan

nmss18

Bad Links for PowerPivot Sample Data

Forward Dates

$
0
0

Hi all,

I'm stuck on something that I assume should be easy.

I have a values for "demand"  for 26 forward months.

I'm trying to get demand that is forward for a group of months.  ie from 5 months forward to +10 after that.  So from +5 to +15 months

This is what I have but I get an error that says " A table of multiple values was supplies where a single value was expected"

any help would be great.

HighLimVol:=calculate([DEMAND],DATESINPERIOD('DATE'[DATE],DATEADD('DATE'[DATE],5,MONTH),10,MONTH))

Thanks

Who will be announced as the next SQL Server Power Pivot Guru? Read more about April 2019 competition!!

$
0
0


What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in April 2019 and must be in English. However, the original blog or forum content can be from beforeApril 2019.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Ronen Ariely.

Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
----------------------------
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

How to 'loop' and calculate based on the 'loop' values?

$
0
0

Hello PowerPivot and DAX experts,

I'm sorry that I can't attached images or links since my account still awaits to verify.

Say for example I have a slicer name 'City', and their city names are 'Toronto', 'Ottawa' and 'Vancouver'.

Out of these cities, there's properties that are related to them, and these properties, some are December Year end, some are April Year end and some are August Year end.

I had a measure [Final Figures] that calculates correctly. I am now trying to create a simple [MTD Actual], [MTD Budget], [YTD Actual] and [YTD Budget] measures that uses [Final Figures].

For example [MTD Actual]:

IF(HASONEVALUE(tblCommunity[Year End]),
      SWITCH(VALUES(tblCommunity[Year End])
      ,
      "Apr", CALCULATE([Final Figures],
                         ActualBudget[Actual/Budget] = "Actual",
                         FILTER(ALL('Calendar DateTable'),
                                     'Calendar DateTable'[Month Index] = VALUE(MAX('Calendar DateTable'[Month Index])) - 4  &&  'Calendar DateTable'[Year] = MAX('Calendar DateTable'[Year])
                         )
                )
       ,
      "Dec", CALCULATE([Final Figures],
                         ActualBudget[Actual/Budget] = "Actual"
                 )
       )
)

The above [MTD Actual] formula works ONLY when the properties that are retrieved via 'City slicer' ONLY has 1 Year End value that is either December Year End, or April Year End. But when there's multiple Year End properties in the same city, my [MTD Actual] calculation becomes blank.

May I ask then, how can I 'sum' both of the Year End properties by 'checking' these properties are 'Apr Year End', and these properties are 'Dec Year End' and then sum them up when there's multiple Year End properties vs. only 1 Year End property.


Measure Missing from PowerPivot Field List

$
0
0
As much as I like PowerPivot, there are some things that I really find puzzling. I created a measure in the PowerPivot Field List ("Sum of RecordCount"). I created another measure ("Index") that references the "Sum of RecordCount" measure. I've been working in the workbook for a few weeks and suddenly I am getting an error on the "Index" measure. When I open the measure it indicates it can't find the "Sum of RecordCount" measure. Sure enough, I don't see it in the measure list. So I try to create a new one and it tells me the measure ALREADY exists. Huh? So I Open up the PivotTable field list next to the PowerPivot Field list and guess what, the measure is there. It just is not displaying in the PowerPivot Field List. (Top Picture) The odd thing is I opened an earlier version of the same spreadsheet. It is also missing the measure in the PowerPivot field list BUT the "Index" measure is NOT throwing an error. (Bottom Picture) How can I get the original measure back so I can get rid of the error?PhotobucketPhotobucket

Dynamically change Hierarchy Detail on Row Label - Power Pivot

$
0
0

Hello,

Given that I have the following Hierarchy. Header, SubHeader, SubHeader-Level1 and SubHeader-Level2.

And all these dimensions are in the 'Row Label' in the Pivot Table.

There are a total of 3 tables. tblHeader (where the Header is from with other dimensions), tblSubHeader (where SubHeader and SubHeader-Level1 are from with other dimension) and factTable (where the SubHeader-Level2 is from with other dimension)

There will always be values in Header, SubHeader and SubHeader-Level2 (this is the concatenate of GL ID and GL Description). But there's 'blanks' in SubHeader-Level1.

My ultimate goal is to create an income statement where the value of the Header will be BLANK follow by the child hierarchy will the calculated values.

My question is, is there a way to have the data that's in the SubHeader-Level2 to move to SubHeader-Level1?

For example, below is how it looks like (Note that '+' is the expand/collapse icon in the pivot table)

+Revenue                                              (Header)
   +Rental Revenue                                 (SubHeader)
      +Car Rental                                      (SubHeader-Level1)
          101-Economic Car                         (SubHeader-Level2)
          102-Medium Car                            (SubHeader-Level2)
      +Tool Rental                                      (SubHeader-Level1)
          103-Moving Trolly                          (SubHeader-Level2)
   +Parking Revenue                                (SubHeader)
      +BLANK                                           (SubHeader-Level1)
          104-Indoor Parking                         (SubHeader-Level2)
          105-Outdoor Parking                         (SubHeader-Level2)

But, I'd like to have it look like below

+Revenue                                              (Header)
   +Rental Revenue                                 (SubHeader)
      +Car Rental                                      (SubHeader-Level1)
          101-Economic Car                         (SubHeader-Level2)
          102-Medium Car                            (SubHeader-Level2)
      +Tool Rental                                      (SubHeader-Level1)
          103-Moving Trolly                          (SubHeader-Level2)
   +Parking Revenue                                (SubHeader)
          104-Indoor Parking                         (SubHeader-Level2)
          105-Outdoor Parking                         (SubHeader-Level2)     

How to deploy Power BI Report Server without Service account/Active Directory?

$
0
0

I need to deploy PowerBI report server (Oct 2018) in a production environment using 2 servers, the first server is for power BI report server (Web server) and the second server will host Data warehouse and Analysis server (distributed deployment of PowerBI) after installation, I got the following error when opening a dashboard:

Error: We couldn’t connect to the Analysis Services server. The server forcibly closed the connection. To connect as the user viewing the report, your organization must have configured Kerberos constrained delegation.

I know that Power BI report server requires Active directory and a service account for authentication and some settings to SETSPN and delegation on <g class="gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="12" id="12">Active</g> directory but the IT department of organization doesn't let us join the servers to the domain or create a service account.

I also tried to create the same local account with the same password, but it didn't work.

Help getting detailed error messages.

$
0
0

Greetings. I realized today that a daily refresh has been failing more than succeeding w the generic message "Call to Excel Services returned an error."

I have read that the ULS logs are where I should go to get more detailed info, and that those should be in the "C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\14/5/6\LOGS" location. No recent files exist there, but I did spot a location for the Trace Log on the Diagnostic Logging tab in SP 2013 Central Admin (D:\Web\LogFiles\SharePoint_DiagLogs). In one of those files I find entries for my specific PP report, for the correct day and time, but no error messages. 

Also, my boss said that I use a utility in sharePoint powerShell using "Merge-SPLogFile", but that requires a correlation ID, and I don't see where I can get that?

Any ideas on where to go from here?




Thanks in advance! ChrisRDBA

Cannot Update BI Data

$
0
0

Hello.  I have created a workbook where I have worksheets with named tables and I load the tables into the data model, which is used for pivots.  I created reports in BI from that workbook.  Now, I need to replace the YTD sales information because a new month has ended.  I'm not able to get the data replaced and I'm unsure what I'm doing wrong.  The information I have found online has either not worked or it's not for BI 2016 Desktop.  I'm using Office 2106 Professional Desktop.  I do not have a subscription to a BI service.  My client has created a 365 license for me.  We do not know how to use BI in 365 yet.  I am trying to get a basic understanding of how to use it on my desktop first.  However, I do save the workbook and the BI file on my NAS.

I may not be going about the data replacing correctly.  I go to Get Data-Excel.  I see the worksheets and table names.  One table name is DT_Items.  I check the box and choose edit.  At that point the data view shows my original DT_Items and another DT_Items2.  How do I replace the original?

From what I understand, in BI, users do not get an option to upload the data model.  To see what BI uploads from the data model, the user has to go to the data view?

Thanks in advance!

Edit:  I think I've learned the workbook name needs to stay the same?  So I've made the name something that will not change.  I was able to Get Data without the tables duplicating.  I refreshed but the data in the reports has not changed.  Why would that be?

Slicers not hiding values for multiple pivots of the same ThisWorkbookModel for certain measures

$
0
0

I have a Facts table and multiple single-column dimension tables connected to fact table by 1 to many relationship. i have created multiple slicers from the dimension tables to filter the data in the facts table. I have clicked Slicer settings to"Hide items with no data". I have created 2 pivots from the ThisWorkbookModel and added 2 measures to the pivots.

Count of Prev Char Value:= CALCULATE([Count of Char Value],SAMEPERIODLASTYEAR(dDate[Date]))

Here Char Value is from the fData facts table that i want filtered, based on thedDate[Date] from the dDate dimension table for the same period last year. I cannot use the date column from thefacts table as the dates are not complete or in sequence.

%Change:= IF(IFERROR([Count of Char Value]/[Count of Prev Char Value]-1,BLANK()),IF(([Count of Char Value]/[Count of Prev Char Value]-1)=0,BLANK(),[Count of Char Value]/[Count of Prev Char Value]-1))

If i use just the [Count of Char Value] or [Count of Prev Char Value], the Slicers hide the items with no data.

Dashboard with filtered items

PT1 with Count of Char ValuePT2 with Count of Char Value & Count of Prev Char Value

But if i use [% Change] in one or both of the Pivots, the Slicers do not hide the items with no data.

Dashboard now showing unfiltered slicers

PT1 with %ChangePT2 with %Change

I tried adding Year to one of the Pivots, for the SamePeriodLastYear function to work. Also, i suspect the[Count of Prev Value] and the [%Change] measure are also not working properly. Why is this happening and how can i resolve it?


Regards. ~~SiFaR~~


PowerPivot and SharePoint as External Datasource does not work on 64bit

$
0
0

I'm working with Excel 2016 and PowerPivot tables. As source there are some SharePoint oData RESTs defined. On 32bit version it works, on 64bit it fails with a 401 Error.

What could the problem be?

EDIT1:
I found this, I think the problem is the same, but SharePoint 2016 does not have the Excel Services included anymore...



A table of multiple values was supplied where a single value was expected.

$
0
0

Hello,

Can anyone help me to fix below formula? My data set has duplicate value and i am not sure how to deal?

Check =

IF (

    LOOKUPVALUE (

        Sheet2[No],

        Sheet2[units], Sheet2[units] * -1,

        Sheet2[previous], Sheet2[previous] * -1,

        Sheet2[current], Sheet2[current] * -1

    )

        <> BLANK (),

    "A",

    "B"

)

No

flag

units

previous

current

14120.2

Y

1

157564

157564

14302

N

1

157564

157564

14302.1

Y

-1

-157564

-157564

14386

N

1

157564

157564

14386.1

Y

-1

-157564

-157564

Summing up values

$
0
0

A tabular model.
The table 'Historic Project One Hour Value' contains hours value (like price) for working hours on projects on several dates.
It is connected only to the project table but not to the date table .

I'm trying to calculate the hours value. For my question let's say there is only one hour on each project.
I get the correct answer for each project, but the total is a very big number, which I don't understand.

I will appreciate your help.

One Hour Value On Date:=

VAR OneHourValueOnStartDate =

FILTER (

'Historic Project One Hour Value',

'Historic Project One Hour Value'[HistoricOneHourValueBeginDate]

            = date(2016,12,31)   

)

VAR OneHourValueOnStartDateForOneProject =

1 *   /*Actually, I multiply the working hours of the project, but this number is correct */

CALCULATE (

SUM( 'Historic Project One Hour Value'[HistoricOneHourValue] ),

            OneHourValueOnStartDate

        )

RETURN

IF (

HASONEVALUE ( Projects[Project ID] ),

 CALCULATE ( OneHourValueOnStartDateForOneProject ),

CALCULATE (

 SUMX (

 VALUES ( Hours[HoursProjectID] ),

                OneHourValueOnStartDateForOneProject

            )

        )

    )

                                                                                                          



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.



Unable to load the tables in the PowerPivot window

$
0
0

Hi,

I'm getting the error above when trying to open power pivot data model in a specific workbook. I've had a look online, and there is no suggested fix for this other than: "it's broken, start again". It's a big model that I spent a long time on, which has been working and I was simply accessing the Data Model to make some minor - but required - changes. I'm relatively new to Power Pivot and if this is a common error (which it seems to be from internet searches), and catastrophic in nature, then I feel that it should be plastered all over the product when you open it. Has anyone got any suggestions that might garner a fix and if not any suggestions for best practices to mitigate this type of error in the future? Is the bottom line that this model is screwed?

Thanks in advance,

Rico

Office 365, Excel 2016 MSO (16.0.9126.2259) 32-bit

Object reference not set to an instance of an object.
============================
Call Stack:


   at Microsoft.AnalysisServices.BackEnd.ExposureControl.GetIsForwardCompatibilityEnabled(DataModelingSandbox sandbox)
   at Microsoft.AnalysisServices.BackEnd.ExposureControl.IsForwardCompatibilityEnabled(DataModelingSandbox sandbox)
   at Microsoft.AnalysisServices.Common.SandboxEditor.get_Show1200Features()
   at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
   at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)

How can I access the power bi of an Office 365 subscription in another data source of another subscription?

$
0
0

Hello People!

My company acquired the license of power bi in this tenant of office 365, my doubt is how to access the data source of a virtual machine that is in another subscription in Azure?

Can you please help?

Leonardo Fogaça de Almeida

Viewing all 4715 articles
Browse latest View live


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