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

Time on data label for power pivot chart

$
0
0

Hi every one,

During this last 2hours i am trying to find a way to display time data on label. 

My chart has its data coming from a power pivot table. In this time I have the value of my duration (in second) and I have another column which contains the time format as 02:14:00 for instance.

What I am trying to do is ti put my duration as values and my time format as label but I did not find a way of doing it.

Is there a way to do it ?


Data Model Diagnostics - Fixing a memory leak

$
0
0
I'm having some issues with a workbook that I've been using for a number of months. The issues started this week, possibly after I deleted a table in my data model that was no longer needed. 

If useful my system has a core i7 and 16GB RAM.

The issue I am seeing can be described as follows:

- The data model pulls data directly via our MySQL database. There are 15 tables in the data model that get updated whenever a single source is refreshed. 

- When I refresh the source it begins retrieving the data for the first table but gets stuck. 

- It task manager I can then see the memory usage steadily increasing to the point where, if I leave it alone, the refresh crashes due to an "out-of-memory error" 

-If however i switch to the workbook (rather than the PowerPivot window) and hit Esc it will finish fix the memory leak, update the first table in the sequence then move onto the next table and the exact same pattern will be repeated for all 15. 

- Even stranger is that if I hit Esc too early it cancels the whole refresh (as expected) but if I leave the refresh of each table until the memory leak hits almost full memory usage it is successful

Does anyone have any suggestions on what this could be and how to resolve it? The data being imported is not huge, the biggest table has about 20,000 rows. 

Thanks. 




KPI based on timeliness?

$
0
0

I'm building a scorecard for a Sales team and am looking to create some KPI's. One thing I want to grade them on would be their timeliness in submitting customer promotions. Oftentimes we receive a deduction and there is no promo in the system. We track the promo creation dates and the date we receive the deduction. If the promo creation date is greater than the deduction date we know they didn't do their job on the front end. How could I go about creating some sort of visual to use on a scorecard? (I'm thinking a gradient from green to red and a percentage)  

Any help is appreciated

Thanks

 

Excel 2013 Power Pivot Error

$
0
0

64 bit machine

Enterprise Windows 7

Office 2013 32 bit

Excel 2013

I have admin rights on the machine

I created a set of queries in Power Query.

I want to access the queries (in multiple tabs) from Power Pivot as my data sources

I opened a new Excel file, Opened Power Pivot

I clicked the Manage Data Model button

I clicked From Other Sources in "Get External Data"

I clicked Excel and browsed to the excel file with the Power Query query files

I select the file and click test connection

and I get an error "Failed to connect to the server. Reason: Unspecified error"

This is a local excel file I created. I have rights to it!

I once fixed this by enabling all SQL services I could find. But that is not working now.

Help!

Full message below: 

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

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

Unspecified error
----------------------------
Failed to connect to the server. Reason: Unspecified error

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

   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OleDb.OleDbConnection.Open()
   at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
----------------------------
   at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
   at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open(String& connectionIdentifier)
   at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open()
   at Microsoft.AnalysisServices.Common.DataSourceBasic.TestConnection()
   at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)

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

Restore from Power Pivot is disabled on an Analysis Services instance

$
0
0

Hi,

For some reason I am seeing Restore from Power Pivot  option is disabled in my  Tabular model database on an Analysis Services instance and I am not sure what is causing this issue.

Please provide your assistances on this issue.

Thank You

Creating Hierarchies

$
0
0

Hi there,

I am trying to create an alternate hierarchy on the fly in PowerPivot, but my data is from a single cube/table and the "Relations" icon is shaded out, so I can't look at the DIMs that way.  I also tried right-clicking at the top of the column (for my DIM), but I don't see the option to create a hierarchy - actually, I don't see that option anywhere.

Is it the case that I cannot create an alternate hierarchy from an existing DIM when I only have one table?  If this is not the case, how would I do it?

Thanks...........

Sum with "or" conditional

$
0
0

Hi everyone,

I have 2 table below:

Table 1:

Product NoQuantity
A


Table 2:

Product NoReceiving QuantityType
A10NR
A5CN
A6NR
A7DC
A6CN


I want to sum Receiving Quantity with Type "CN" OR "DC". The result of Quantity in Table 1 should be like this:

Product NoQuantity
A12

Please help me on this fomular.

Thanks very much.

Searching by Secondary Contact

$
0
0

Is there a way of searching and pulling up a list of my Secondary Contacts? My employer will only let me create one contact page for a company/organization.  I have to add additional contacts under "Secondary Contact."  I am not finding a way to create a list of these additional people.

When I try to individually find someone that is a Secondary Contact, the only way I seem to find them at all is to search by Keyword.

Any help is appreciated.


Suggest Best Practice

$
0
0

Hello,

I've to prepare a 2012 SSRS Dahboard, which will have 8 different charts to show Revenue, Cost, Margin..etc. Grouped on Sector, Service Line etc..

The Ungrouped query result set is having 1.2 M records and taking 75 seconds using stored procedure.

Please suggest which will run faster and advisable,

1. A single dataset with all records and then grouping them based on Revenue, Cost... to show different graphs on SSRS

2. Get grouped records from SQL and create datasets which would be as many as different graphs.

Thanks,

Prashant Pandey

Be Our July Power Pivot Guru! Supply a Sizzling "Sunny Season" Scoop!

$
0
0

Up here in the Northern Hemisphere, things are hotting up!

And in TechNet Guru land, hot is cool!

So once again, we ask you for your sizzling "Sunny Season" scoop.

Your blazing and boiling blurb, and your hot how-to's!

Step up Gurus and please provide us some engaging essays and exciting expositions!

Now is the season for your fascinating feature, your classic composition, or your tasty treatise!

Let the community warm to your write-up, industrial item, professional passage or specialized story.

We need high-tech high hitters!

It is your time in the sun my friends!

Enjoy it while it lasts! (the sun that is)

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!



Information automatically updated in Power Pivot

$
0
0

Hello everybody,

I have a problem in a report using Power Pivot. I hope someone can help me :)

I need to update a report every month. The problem is that the information I need to show is related only to the last month, so it's not year to date. Because of that, I have to create formulas for each month and keep changing the columns created by these formulas every month when the database is updated, which is not practical.

To start thinking about updating automatically these columns, I added 2 calculated columns in my Power Pivot database with ormulas that understand the "Current Month" (July, for example), and the past months (June as "Current Month -1", May as "Current Month -2" etc).

Column "RelativeMonthOffset": =((12 * YEAR([MONTHCOMP])) +  MONTH([MONTHCOMP])) - ((12 * YEAR(TODAY())) +  MONTH(TODAY()))

Column "Relative Month": =IF([RelativeMonthOffset]=0 ; "Current Month" ; "Current Month " & IF([RelativeMonthOffset]>0; "+"; "") & [RelativeMonthOffset])

*MONTHCOMP: The column with the months

My next step is creating a condition that understands I need to show the updated data ("Relative Month -1" June), but also understands that if this information is not updated yet, it has to show the "Relative Month -2" (May).

I have tried to use the Calculate, But I don't know if it can be used.I didn't know how to create the syntax, for example:

CALCULATE(sum(2015[REVENUES]);2015[RelativeMonthOffset]="Current Month -1") || 2015[RelativeMonthOffset]="Current Month -2"))

In this case, I have tried to use OR ( || ), but it doesn't work because the formula doesn't understand that there's a "priority" of showing the "Current Month -1".

Anybody can help me with this issue?

Thank you in advance!





BI Reports on Sharepoint 2013 cannot apply row filtering due to slicer

$
0
0

I simplify the problem as follows:

Given a Excel 2013 pivot table report with one dimension X linked to a slicer, sourced from SSAS 2012 tabular model (v11.0.3000.0), put on Sharepoint 2013, and viewed by Excel Service. If applying row filtering makes X become empty, the slicer will fail to refresh, halt the row filtering, and the report will display the cached information to theSharepoint user.

My question is:

1) Why the slicer refresh fails if X becomes empty? Should it display "all values are filtered out"?

2) Is it possible to clear the pivot table caches and slicer caches before putting the report on Sharepoint 2013? That's may be my workaround if no solution can be found.

Rolling sum of monthly projected revenue from simple interest

$
0
0

I have a brute force approach to this issue in my head but figured I would reach out to the community for potentially a smarter way.  I have a statement of actual income and a statement of projected sales per month. On the projected sales, revenue is projected to be collected over 18 months at a certain basis points (BPS). For example:

January 2016 actual revenue: $3,000

January 2016 sales: $1,000,000

The calculation for actual revenue based upon projected sales is:

$1,000,000 * .00075 (BPS) * 550 (term of 18 months in days) / 365 = Total revenue from projected sale, in this case $1,130.14 or $2.05 per day

The tricky part of this is that they want this revenue projected over 19 months, 15 days for the first month of sale, 30 for the next 17 months and then 15 days for the last month and this has to be cumulative as they have projects for an entire year of months.  For example:

  • January 2016 projected sales revenue per day = $2.05
  • February 2016 projected sales revenue per day = $5.13
  • March 2016 projected sales revenue per day = $10.28
  • The calculation for January would be ($2.05 * 15)
  • For February ($2.05 * 30 + $5.13 * 15)
  • For March: ($2.05 * 30 + $5.13 * 30 + $10.28 * 15)

And so on but it has to be smart enough to actually end this at the appropriate term. The end result needs to be a single answer that combines actual revenue for the month with this projected revenue for each month.

Any ideas on any elegant solution to this one?

How do I stop the PowerPivot Grid from re-ordering the measures?

$
0
0

Hi,

I have a PowerPivot table with lots of measures.

How do I stop the PowerPivot Grid from re-ordering the measures?

This is a very significant issue from my perspective since currently everytime I open the PowerPivot model the ordering of the display of the design of the measures is changed every time the PowerPivot model grid is opened.

Kind Regards,

Kieran.


Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

Line Space Calculated Fields or Measure?

$
0
0

Hello,

I'm hoping someone will assist with creating a dynamic x-axis of equally spaced numbers in a PowerPivot model.  The following function generates one of the most useful vectors I've ran across in my career;

 
Function LinSpace(ByVal a As Double, _
ByVal b As Double, ByVal num As Double, _
Optional ByVal endpoint As Boolean = True) As Double()

    'Generate linearly spaced numbers.'
    Dim step As Double
    Dim i As Long
    Dim y() As Double

    ReDim y(0 To num - 1, 0 To 1)

    If endpoint = True Then
        step = (b - a) / (num - 1)  'with endpoint'
    ElseIf endpoint = False Then
        step = (b - a) / num        'without endpoint'
    End If

    For i = 0 To num - 1
        y(i, 0) = a + i * step
    Next

    'debug.Print step'
    LineSpace = y

End Function

Its functionality can be successfully recreated in a simple excel table as shown below;

LinSpace_Table

However, in attempting the structure in PowerPivot, a calculated field fails to divide by the count (num), while the measure just returns an error. . .

PowerPivot_LinSpace

This appears to be simple at first, but with more effort its becoming quite the challenge.  Any suggestions would be most helpful.  I can also provide the workbook if required.

Thank you!!!

Andrew S.


How to convert measures as text to actual measures?

$
0
0

Hi, 

I have an old model that unfortunately had to be re-establish. 

In order to save time, I thought that I can export all my measures and paste it as measures in my new model. 

I used the following technique to export the measures from the old file:

http://www.powerpivotpro.com/2012/10/other-better-ways-to-get-all-measures-as-text/

Does anyone know how to use the output and create the identical measures in my new model, without the need to manually write each one of them?

Thanks

POWER QUERY- help needed

$
0
0

Hi everyone, 

I have a folder with many identical excel files, each contains data about a different project.

I want to use power query to import 1 specific sheet out of each file existing in the folder (in each excel file- sheet's locations are the same and so are their names). 

Here is the tricky part for me- 

The sheet has 9 summary rows in the upper part of the sheet that I do not need, and the data table starts from row 10 (header row). 

I do not know how to remove these 9 rows, do that to all files and merge the data into a single table. 

Appreciate your help!



Creating a forecasting tracking tool

$
0
0
Hi all, 

I am building a model which tracks forecasts of consumption.

My users will use a template file and enter line items and Qty for each round of forecast. 
(On a nutshell, let's assume we have a 2 Y project and repeating forecasts for the following 2 months)

The way I built the system so far, is that a power-query imports all the templates located in a folder and imports them into a single power pivot table. 

That final table consists many projects and their progress throughout the repeating assessments.

Here are my concerns: 
1) I want to be able to present the total Qty at the end of each project + slice it to by line items
2) I want to show the behavior throughout time (like in a line chart)
3) Not to double count anything

I thought of 2 ways how doing it:
1) Track only the changes only- so that the main table will show the first revision, and when something was added/substracted or the quantities have changed, it will add a line item with the delta. To my understanding, this way I can present the final Qty at any given moment, but to display the behavior I will need to create an accumulative graph.
2) Import all the files and let the system search for the latest timestamp and display only it. That way I can also show the differences between the dates of the files (timestamps) in a graph wise rather easy.

Appreciate your feedbacks which option is better.

If you can, helping to clarify how doing it will be more than appreciated 

Thanks a lot

עמית

Array (Ctrl+Shift+Enter) to make a Kernel Density Estimate

$
0
0

Hello,

I'm attempting to use SUMX(MyTable, MyExpression) to recreate an Array function in a PowerPivot measure.

The most simple example would be {=SUM(F2-B)} where B is a named range (column in table) and F2 is the first element in a LinSpace (equally spaced numbers).

This will be used in the Kernel Density Estimate {=SUM(EXP(-0.5*((F2-B)/$D$2)^2)/SQRT((2*PI()*$D$2)^2))} where $D$2 is a constant width (ScottsRule of named range B).

The measures I'm trying are:

SUMDIFF:=SUMX(MyTable,OtherTable[LinSpace]-MyTable[MyColumn])

This returns all 0's when used in PivotTable Values

KDE:=SUMX(MyTable,EXP(-0.5*((OtherTable[LinSpace]-MyTable[MyColumn])/$D$2)^2)/SQRT((2*PI()*$D$2)^2)

This return the following error when used in PivotTable Values, "MdxScript(Model) (6, 51) Calculation error in measure 'LinSpace'[KDE]: An argurment of function 'POWER' has wrong data type or the result is too large or too small."

Please see the attached workbook for KDE logic and previous post line space calculated fields or measure for LinSpace discussion.  Any thoughts would be appreciated.


V/R, Andrew S.

Pivot in SQL Or Dynamic Pivot

Viewing all 4715 articles
Browse latest View live


Latest Images

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