SOLVED

Using GETPIVOTDATA To fill separate sheet based on dynamic data tied to dates

%3CLINGO-SUB%20id%3D%22lingo-sub-2790046%22%20slang%3D%22en-US%22%3EUsing%20GETPIVOTDATA%20To%20fill%20separate%20sheet%20based%20on%20dynamic%20data%20tied%20to%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2790046%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20attempting%20to%20get%20my%20data%20in%20a%20table%20to%20correspond%20with%20the%20dynamic%20data%20in%20a%20pivot%20table%20that%20is%20on%20a%20separate%20sheet%20within%20the%20same%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20I%20can't%20get%20the%20data%20in%20the%20table%20to%20correspond%20with%20the%20coinciding%20dates%20in%20the%20pivot%20table%20except%20for%20the%20first%20initial%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20would%20I%20need%20to%20input%20into%20my%20formula%20to%20make%20this%20work%3F%20Hypothetically%20these%20tables%20will%20continue%20until%20the%20end%20of%20time%20and%20will%20be%20updating%20every%20day.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESconway%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2790046%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2790113%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20GETPIVOTDATA%20To%20fill%20separate%20sheet%20based%20on%20dynamic%20data%20tied%20to%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2790113%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1168212%22%20target%3D%22_blank%22%3E%40sconway1985%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENot%20sure%20I%20understood%20the%20question.%20If%20what%20to%20use%20here%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20799px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313222iFB1A0F8C96D3838F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewhen%20B14%2C%20B15%2C%20etc%20(reference%20on%20the%20cell%20in%20Date%20column).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2790154%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20GETPIVOTDATA%20To%20fill%20separate%20sheet%20based%20on%20dynamic%20data%20tied%20to%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2790154%22%20slang%3D%22en-US%22%3EHello%20Sergei%2C%3CBR%20%2F%3EYes%20I%20think%20that%20end%20of%20the%20formula%20is%20what%20I%20need%20to%20edit.%20I%20need%20to%20reference%20not%20just%20that%20specific%20date%20with%20the%20formula.%20I%20need%20to%20have%20a%20formula%20that%20will%20autofill%20the%20remainder%20of%20the%20days.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

I have been attempting to get my data in a table to correspond with the dynamic data in a pivot table that is on a separate sheet within the same workbook.

 

The problem is I can't get the data in the table to correspond with the coinciding dates in the pivot table except for the first initial date.

 

What would I need to input into my formula to make this work? Hypothetically these tables will continue until the end of time and will be updating every day.

 

Thanks in advance,

 

Sconway   

8 Replies

@sconway1985 

Not sure I understood the question. If what to use here

image.png

when B14, B15, etc (reference on the cell in Date column).

Hello Sergei,
Yes I think that end of the formula is what I need to edit. I need to reference not just that specific date with the formula. I need to have a formula that will autofill the remainder of the days.

@sconway1985 

If you mean to repeat automatically calculations for all dates presented in PivotTable that's, I guess, with data model. For that first add data to data model creating creating PivotTable.

 

One way is generate DAX query for needed calculations with  ADDCOLUMNS and / or SUMMARIZE Best Practices Using SUMMARIZE and ADDCOLUMNS - SQLBI , add this query to linked-back table Linkback Tables in PowerPivot for Excel 2013 - SQLBI . With that you have structured table within the grid based on data model table.

 

More modern way is as here Chris Webb's BI Blog: Excel Cube Functions, Dynamic Arrays And Lambdas, Part 2: Returning Tables Chr... but that's for insiders.

@Sergei Baklan 

 

I'm not sure I understand what you mean. 

The data itself is input via PowerApp that feeds a SharePoint list. This list is then fed as raw data into a sheet within the book automatically and all I am doing is referencing the raw data to create the Pivot Table. Then I am referencing that Pivot Table from another sheet to create another table.

@sconway1985 

I see, but in general data source doesn't matter. Based on it you may build "legacy" PivotTable which keeps data in cache, or build tabular data data model and aggregate data based on it. The latest is much more powerful - and more complex of course.

I'm just trying to figure out what I need to do with the provided formula to make it continue to reference the pivot table's consecutive dates and fields associated with them.
best response confirmed by allyreckerman (Microsoft)
Solution
@Sergei Baklan

I figured it out
=GETPIVOTDATA("Min of Effluent_x0020_Meter_x0020_Start",Sys.PVOps!$B$3,"Date1_asdate",[@Date])
allows me to perform the function I wanted.

Thanks for your help

Best

@sconway1985 

Great to know, thank you for the feedback. I misunderstood you - I though you'd like to use dates range returned by PivotTables, not predefined manually dates in column.