March 10, 2016
In the attachment in the issue - Sheet1
I relied on the file I downloaded in your amazing webinar
I built a pivot report
And I need calculations based on the total amount
I added the calculations manually - but when I add the category to the rows of the report - it deletes the manual calculations.
How do I add calculations to the overall summary that will be part of the pivot report?
July 16, 2010
Hi Lea,
If it's a regular PivotTable then the only way to add columns that are retained by the PivotTable is to add it as a Calculated Field or Calculated Item. If it's a Power Pivot/Data Model PivotTable then you need to write a DAX measure.
Mynda
March 10, 2016
I started working on DAX in Power Pivot My problem now is that I need the percentages only for the final total and not for all the lines (As in the attachment 11)
- how can this be defined ??
I need the result to be similar to the example attached here in the image (As in the attachment 33)
Thank You!!!!!!!!!!!!
July 16, 2010
Hi Lea,
PivotTables don't work like that. They don't leave cells blank, they're designed to aggregate the data based on the row and column labels. You might be better off using CUBE functions if you're using the data model, or GETPIVOTDATA.
Mynda
Trusted Members
Moderators
November 1, 2018
March 10, 2016
The GetPivotData
Allows me a formula outside of the pivot and if I make changes to the pivot structure it disappears.
The CUBE function looks amazing but I prefer to be based on the pivot rather than create a re-report.
The question is how can you add a calculated field / item to the total amount
- which will be part of the report and its location will change even when the structure of the report changes ??
Below the line Total amount - a calculation result of amount * 0.17 will be obtained
July 16, 2010
"The GetPivotData allows me a formula outside of the pivot and if I make changes to the pivot structure it disappears." Build a separate PivotTable to support your requirements and link GETPIVOTDATA to that PivotTable so the values are always available.
Alternatively, take Velouria's suggestion and don't drill down to the lower row label level, so you only see the totals.
Mynda
March 10, 2016
Thanks for the response,
It is still not clear to me how to use with GetPivotData
Attached is a sample file
Where the years and months are in the columns
When you look at all the months - the formula works great
But when I only show the years - a REF error is obtained
And if I want to add another element to the lines of the report - everything goes wrong.
And there are 2 sections in the lines - if you only show the main section then the formula is not attached to the report
and there are many lines in the middle
what can we do??
Please refer only to this file - GetPivotData-Question-1.xlsx
I could not remove the other files
I would appreciate an answer on the attachment so I will better understand the solution.
Thank you very much for answering and being patient with all my questions !!
Leah
Trusted Members
Moderators
November 1, 2018
Trusted Members
Moderators
November 1, 2018
Trusted Members
Moderators
November 1, 2018
You add the calculations as measures in the data model, not using MDX. The MDX only determines what level of detail is shown in the set but you can do most of it manually in the UI by adding and deleting rows as needed.
I’ve never seen a guide to working with sets but I’m sure there must be one.
March 10, 2016
Hi,
I have now tried to work with estimates, the problem is that there are no wide shrink buttons
And my report consists of many lines.
Is there a way to set that I can shrink in the report - and not within the scheme management?
I was thinking of performing this process with a macro?
That every time I want the calculations - I will define the report that will look like I want now - my question
- how in a macro recording define that it will come to the last line of the total ???
1 Guest(s)