Excel layouts: Usage of excel formulas and column references
Hi!
I have a question on how BPS excel based layouts work:
- Can you enter your own formulas (e.g =SUM) in an cell which will be saved in a cube?
- Can a cell to save in a cube contain a reference to another cell in another worksheet?
Points will be given.
Regards,
Christian
Christian,
To answer your questions,
- Can you enter your own formulas (e.g =SUM) in an cell which will be saved in a cube?
Yes you can enter your own formula and calculate the
value.Its only value that is saved into the Cube not
the formula.So when you retrieve that value from the
cube, you wouldn't be able to see the formula.I am
assuming that you are trying this in data columns,
where you would normally enter the values to save
into the cube.If you do it anywhere else other than
the data columns, you will not be able to save
anything in this cell to the cube.
- Can a cell to save in a cube contain a reference to another cell in another worksheet?
As we can't save any formulas and link in a
particular cell into the cube, its not possible
to do it from an excel cell perspective.But I have
used exit function that refer particular cell(s)
and used it for data manipulation/linking dynamically
I did this only on GUI, not on web.It was very
custom routine.
Hope this helps.
Cheers
Srini
Similar Messages
-
Say you have a list of hours in column A, and a list of hourly rates in column B. Is there a way to make all of the cells in column C equal to the product of the cells in A and B for the corresponding row? +Cx = PRODUCT(Ax,Bx)+, but not have to enter this for every cell in C. Can formulas be generalized down columns this way?
Thanks.dr.katamari wrote:
Can formulas be generalized down columns this way?
Hi dr.k,
Yes.
You'll find details on this in the article "Autofilling Table Cells," in Chapter 4, _Working with Table Cells_ of the Numbers '09 User Guide, starting on p. 78.
The guide is available as a searchable pdf document through the Help menu in Numbers.
Regards,
Barry -
Sum GETPIVOTDATA with multiple data item references using Array formula and cell references
I'm trying to build a single formula referencing a shared pivot table. I would prefer not to create additional pivot tables etc.
My criteria is basically the sum of multiple items in the pivot table. I am able to add multiple fields by typing item names in manually (see below Claims 1/2/3 etc) however I would also like to add a date range array in, but instead of typing them
in I'd like to use cell values that can change dynamically, depending on previous options selected.
My current formula is:
{=SUM(IFERROR(GETPIVOTDATA("Count",'Settlement Pivots'!$A$1,"Loss Fin Year",$B6,"Scheme","Old Scheme","Month",{[Cell Range/Indirect Here...]},"Team2",{"Claims 1","Claims 2","Claims
3","Claims 4","Claims 5","Major Claims","Claims Services"},"Scope","Settlement"),0))}
Is this possible?
CheersHi,
Thank you for posting in the MSDN Forum.
This forum is for developers disscussing issuses about VBA, VSTO and apps for Office. Since the issue is more relate to the end-user, I suggest you getting more effective response from
Excel IT pro forum.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thanks for your understanding.
Best regards
Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Memory usage of excel stays high after Macro is executed and excel crashes after trying to close it
Hi,
I'm trying to resolve an issue with an excel based tool. The macros retrieve data from an Oracle database and do calculations with the data. They also open and write into files in the same directory. The macros all run and finish the calculations. I can
continue to use and modify the sheet. I can also close the workbook, however excel memory usage I see in the windows Task manager stays elevated.If I close Excel it says: Excel stopped working and then it tries to recover information...
I assume something in the macro did not finish properly and memory was not released. I would like to check what is still open (connection, stream or any other object) when I close the workbook I would like to have a list of all still used memory. Is there
a possibility to do so.
Here the code I'm using, its reduced to functions which open something. Functions
get_v_tools() and get_change_tools() are same as get_client_positions().
Public conODBC As New ADODB.Connection
Public myPath As String
Sub get_positions()
Dim Src As range, dst As range
Dim lastRow As Integer
Dim myPath As String
lastRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row
Sheets("SQL_DATA").range("A2:AD" & lastRow + 1).ClearContents
Sheets("SQL_DATA").range("AG2:BE" & lastRow + 2).ClearContents
Sheets("SQL_DATA").range("AE3:AF" & lastRow + 2).ClearContents
k = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
Sheets("ToolsList").range("A2:M" & k).ClearContents
'open connection
Call open_connection
lastRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row
If lastRow < 2 Then GoTo ErrorHandling
'copy bs price check multiplications
Set Src = Sheets("SQL_DATA").range("AE2:AF2")
Set dst = Worksheets("SQL_DATA").range("AE2").Resize(lastRow - 1, Src.columns.Count)
dst.Formula = Src.Formula
On Error GoTo ErrorHandling
'new prices are calculated
newPrice_calculate (lastRow)
Calculate
myPath = ThisWorkbook.Path
'Refresh pivot table in Position Manager
Sheets("Position Manager").PivotTables("PivotTable3").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
myPath & "\[Position_Manager_v1.0.xlsm]SQL_DATA!R1C2:R" & lastRow & "C31" _
, Version:=xlPivotTableVersion14)
ErrorHandling:
Set Src = Nothing
Set dst = Nothing
If conODBC.State <> 0 Then
conODBC.Close
End If
End Sub
Sub open_connection()
Dim sql_data, sql_data_change, sql_data_v As Variant
Dim wdth, TotalColumns, startRow As Integer
Dim rst As New ADODB.Recordset
Errorcode = 0
On Error GoTo ErrorHandling
Errorcode = 1
With conODBC
.Provider = "OraOLEDB.Oracle.1"
.ConnectionString = "Password=" & pswrd & "; Persist Security Info=True;User ID= " & UserName & "; Data Source=" & DataSource
.CursorLocation = adUseClient
.Open
.CommandTimeout = 300
End With
startRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row + 1
sql_data = get_client_positions(conODBC, rst)
wdth = UBound(sql_data, 1)
Sheets("SQL_DATA").range("A" & startRow & ":AA" & wdth + startRow - 1).Value = sql_data
'Run change tools instruments
startRow = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
sql_data_change = get_change_tools(conODBC, rst)
wdth = UBound(sql_data_change, 1)
Sheets("ToolsList").range("A" & startRow & ":M" & wdth + startRow - 1).Value _
= sql_data_change
'open SQL for V tools instruments
startRow = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
sql_data_v = get_v_tools(conODBC, rst)
wdth = UBound(sql_data_v, 1)
Sheets("ToolsList").range("A" & startRow & ":L" & startRow + wdth - 1).Value = sql_data_v
conODBC.Close
ErrorHandling:
If rst.State <> 0 Then
rst.Close
End If
Set rst = Nothing
End Sub
Private Function get_client_positions(conODBC As ADODB.Connection, rst_posi As ADODB.Recordset) As Variant
Dim sql_data As Variant
Dim objCommand As ADODB.Command
Dim sql As String
Dim records, TotalColumns As Integer
On Error GoTo ErrorHandling
Set objCommand = New ADODB.Command
sql = read_sql()
With objCommand
.ActiveConnection = conODBC 'connection for the commands
.CommandType = adCmdText
.CommandText = sql 'Sql statement from the function
.Prepared = True
.CommandTimeout = 600
End With
Set rst_posi = objCommand.Execute
TotalColumns = rst_posi.Fields.Count
records = rst_posi.RecordCount
ReDim sql_data(1 To records, 1 To TotalColumns)
If TotalColumns = 0 Or records = 0 Then GoTo ErrorHandling
If TotalColumns <> 27 Then GoTo ErrorHandling
If rst_posi.EOF Then GoTo ErrorHandling
l = 1
Do While Not rst_posi.EOF
For i = 0 To TotalColumns - 1
sql_data(l, i + 1) = rst_posi.Fields(i)
Next i
l = l + 1
rst_posi.MoveNext
Loop
ErrorHandling:
rst_posi.Close
Set rst_posi = Nothing
Set objCommand = Nothing
get_client_positions = sql_data
End Function
Private Function read_sql() As String
Dim sqlFile As String, sqlQuery, Line As String
Dim query_dt As String, client As String, account As String
Dim GRP_ID, GRP_SPLIT_ID As String
Dim fso, stream As Object
Set fso = CreateObject("Scripting.FileSystemObject")
client = Worksheets("Cover").range("C9").Value
query_dt = Sheets("Cover").range("C7").Value
GRP_ID = Sheets("Cover").range("C3").Value
GRP_SPLIT_ID = Sheets("Cover").range("C5").Value
account = Sheets("Cover").range("C11").Value
sqlFile = Sheets("Cover").range("C15").Value
Open sqlFile For Input As #1
Do Until EOF(1)
Line Input #1, Line
sqlQuery = sqlQuery & vbCrLf & Line
Loop
Close
' Replace placeholders in the SQL
sqlQuery = Replace(sqlQuery, "myClent", client)
sqlQuery = Replace(sqlQuery, "01/01/9999", query_dt)
sqlQuery = Replace(sqlQuery, "54747743", GRP_ID)
If GRP_SPLIT_ID <> "" Then
sqlQuery = Replace(sqlQuery, "7754843", GRP_SPLIT_ID)
Else
sqlQuery = Replace(sqlQuery, "AND POS.GRP_SPLIT_ID = 7754843", "")
End If
If account = "ZZ" Then
sqlQuery = Replace(sqlQuery, "AND AC.ACCNT_NAME = 'ZZ'", "")
Else
sqlQuery = Replace(sqlQuery, "ZZ", account)
End If
' Create a TextStream to check SQL Query
sql = sqlQuery
myPath = ThisWorkbook.Path
Set stream = fso.CreateTextFile(myPath & "\SQL\LastQuery.txt", True)
stream.Write sql
stream.Close
Set fso = Nothing
Set stream = Nothing
read_sql = sqlQuery
End FunctionThanks Starain,
that's what I did the last days and found that the problem is in the
newPrice_calculate (lastRow)
function. This function retrieves data (sets it as arrays) which was correctly pasted into the sheet, loops through all rows and does math/calendar calculations with cell values using an Add-In("Quantlib")
Public errorMessage as String
Sub newPrice_calculate(lastRow)
Dim Type() As Variant
Dim Id() As Variant
Dim Price() As Variant
Dim daysTo() As Variant
Dim fx() As Variant
Dim interest() As Variant
Dim ObjCalend as Variant
Dim newPrice as Variant
On Error GoTo Catch
interest = Sheets("SQL_DATA").range("V2:V" & lastRow).Value
Type = Sheets("SQL_DATA").range("L2:L" & lastRow).Value Id = Sheets("SQL_DATA").range("M2:M" & lastRow).Value Price = Sheets("SQL_DATA").range("T2:T" & lastRow).Value
daysTo = Sheets("SQL_DATA").range("K2:K" & lastRow).Value
fx = Sheets("SQL_DATA").range("U2:U" & lastRow).Value
qlError = 1
For i = 2 To lastRow
If (i, 1) = "LG" Then
'set something - nothing spectacular like
interest(i, 1) = 0
daysTo(i , 1) = 0
Else
adjTime = Sqr(daysTo(i, 1) / 365)
ObjCalend(i,1) =Application.Run("qlCalendarHolidaysList", _
"CalObj", ... , .... other input parameters)
If IsError(ObjCalend(i,1)) Then GoTo Catch
'other calendar calcs
newPrice(i,1) = Application.Run( 'quantLib calcs)
End If
Catch:
Select Case qlError
Case 1
errorMessage = errorMessage & " QuantLibXL Cal Error at: " & i & " " & vbNewLine & Err.Description
ObjCalend(i,1) (i, 1) = "N/A"
End Select
Next i
Sheets("SQL_DATA").range("AB2:AB" & lastRow).Value = newPrice
'Sheets("SQL_DATA").range("AA2:AA" & lastRow).Value = daysTo
' erase and set to nothing all arrays and objects
Erase Type
Erase id
Erase Price
Set newPrice = Nothing
Is there a possibility to clean everything in:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
End Sub
Thanks in advance
Mark -
Column Heading in Excel layout coming to Second Line
Hi All,
I am doing an excel Layout using Report Builder 6i. There in excel layout output,
the cloumn headings are coming in two lines. I mean headings for few last columns are getting wrapped to second line, though corresponding data is coming
correctly.
Please help me over this if anyone had faced the same problem...
Thanks in AdvanceYou need to make sure that your column headings in Reports have no 'returns' in them. The text should be all on one line and the text in the layout editor should be no 'taller' than 1 line. Your frame around the column headings should also be no 'taller' than 1 line.
Hope this helps!! -
Excel 2013 connect to a cube, and Power View concatenate the column name by default
Hi Guys,
Currently, we met a problem with excel services to connect to a cube, when we develope a Excel 2013 Powerview report, the data model column name is concatenate into terrible name by default. e.g. Dim TimeDate Date, Dim TimeTime HierachyYear -Month.
But when start up the data model with Powerpivot, everything gone well. We knew that it can be manual update the name as workaround, but we need to do it every time we create a new powerview with the data model.
Is that any other solution we can do with?
Please help.
JohnnyHi,
As this question is more related to PowerView Report, I suggest you can create a new post in the PowerView forum, you will get more helpful information from there.
PowerView Forum:
https://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jerry Guo
TechNet Community Support -
I have a Windows server app that generates Excel workbooks to be emailed to political campaign volunteers to be loaded into Numbers on an iPad, edited, then emailed back to be posted to the server database. There are two problems encountered:
1. The Excel workbook has the first row (column headings) and first column (route identifier) of cells locked, so that they will not scroll off the screen, but Numbers doesn't respect the locks, so when the user scrolls horizontally or vertically, the column headings and/or the route identifier scroll off the screen.
2. The Excel workbook has pop-up "tool-tip" type comments in certain column headings in order to provide the user with the acceptable entries for those columns, but Numbers does not respect those. When the user touches any of the commented column heading cells, a context menu appears instead of the comment.
What must I do in the Excel workbook sheets, or what settings can be made in Numbers to correct the above?I imported a Numbers '09 file into Numbers on the iPad. All comments were removed during import. Frozen header row and column were retained.
Thank you for your responses I must ask, however, when you refer to "importing" the Excel file, are you referring to a two step process whereby the Excel file is first converted by some other process into Numbers format, then opened in the Numbers application - which is what I have to do in my PC application to generate the Excel file, and reverse that process to convert the Excel back into my database format - or are you simply referring to opening the file in Numbers as "importing" it? And please excuse any ignorance, as I'm not at all familiar with Apple's terminologies. In fact, I don't own an iPad myself, but rather I have to depend on one of my clients to do the testing for me.
I imported an XLSX file into Numbers on the iPad. The file used "freeze panes" to "freeze" the first column and row. Only warning on import was that it changed fonts. It imported without the first row and column frozen and with no comments. Nothing I can do about the missing comments but it was a simple matter to turn the first column & row into headers and freeze them.
Unfortunately this would not be an efficient solution, since the end users are, for the most part, elderly political campaign volunteers who are fairly computer illiterate. These workbooks are actually canvassing lists - known as walklists. Their purpose is for the volunteers to interview voters, record the results of the interviews, and post the results to a database, which provides the campaigns with valuable strategizing capabilities. Also, these workbooks have multiple pages - as many as 10 or more. and from what I infer from the above, the setting changes would have to be made on each page.
My whole intent in developing this iPad/Tablet methodology was to significantly reduce volunteer's work - which is a recruitment benefit - and eliminate paper. While the latter would be accomplished, the former would not, and in fact would tend to increase it. It's necessary to keep the first row - column headings - and the first column - the route identifier - from scrolling off the page, so that the volunteer won't have to keep scrolling up and down and right and left to know what the data are.
Conclusion: Comments are not supported on the iPad version of Numbers. Frozen headers are not imported from Excel but can be recreated easily.
I was previously directed to the Apple website http://www.apple.com/ipad/from-the-app-store/apps-by-apple/numbers.html which extols the wonders of the Numbers application. About halfway down the page there's a section regarding, "Sliders steppers and pop-ups". The web page states that pop-ups can be set up but, being a marketing site, gives no indication whatsoever as to how it's done. I was hoping someone could tell my if there's any way to carry them over from an Excel file. -
Hiding row and column headings in excel
How do I head the row and column headings in excel in docs to go? I have a Q10 and there just isn't enough screen space to also have the letters across the top, and the numbers down the side. How do I get rid of them so I just have the actual spreadsheet itself?
Desktop excel does have this functionality.
DavidChoose Freeze Header Rows in the Table Format pane.
Jerry -
In BlackBerry Passport excel can a row and column be inserted?
Do confirm if in BlackBerry Passport excel row and column can be insert.
Carlos D'SouzaYou already asked this in another thread. You can't add a row or column in Sheet to Go. Sorry.
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
I have noticed that SSMS supports tool tips for the Tabular Model (tables and columns) however Excel 2013 doesn't appear to. This is a very important feature to our end users.
Does anyone know when this will be supported?
Thanks
M MeyerHi Meyer,
According to your description, you want to use the tooltip function in Microsoft Excel for the SQL Server Analysis Services Tabular model, right?
I have tested it on my local environment (Microsoft SQL Server 2012 SP1 and Excel 2013), the result is that the feature is not supported currently. It's hard to say the detail date when this will be supported. If this feature is enabled, Microsoft will announce
it on the document.
Besides, if you have any concern about this behavior, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
they can be, Microsoft might consider to add this feature in the following release after official confirmation.
Regards,
Charlie Liao
TechNet Community Support -
Microsoft Excel functions, formulas, and formula integration
hi friends,
what is the use of this function Microsoft Excel functions, formulas, and formula integration. in bi 7.0 , i can make trending reports with teaxt variables and make formulas with formula ?
Thanking u
suneel.Hi Suneel,
There has been a great thrust by the business users to make the BW reports more friendly with the execl functions, so that they can use it better to perform ad hoc calculations that may be specific to them, and not all the users, so it doesn't have to be built into the query.
Hope this helps... -
hi friends,
what is the use of this function Microsoft Excel functions, formulas, and formula integration. in bi 7.0 , i can make trending reports with teaxt variables and make formulas with formula ?
Thanking u
suneel.Hi Suneel,
There has been a great thrust by the business users to make the BW reports more friendly with the execl functions, so that they can use it better to perform ad hoc calculations that may be specific to them, and not all the users, so it doesn't have to be built into the query.
Hope this helps... -
Formulas results outside of row and column axis
The report has an area of row axis and column axis. This area is where the results from BW are displayed.
We have a requirement where we would have to create formulas using the BW Analyzer results of the row axis and column axis and display the results after the last row of this area.
For example, after the BW Analyzer displays the result area to the Excel, we are required to take Excel Cell D10 * C7 and put the results to B33.
<b>B33 = D10*C11</b>
Excel row 30 is the last row from the row axis result area.
I have searched through the forum for Cell Editor, but it seems that the requirement is to use 2 structures and use Cell Editor only when there is a formula collision. Our requirement has 1 structure, but I guess we can create the other structure for the column axis results. But still I think Cell Editor is a computation of formula collision within the row and column axis result area.
My question is will Cell Editor meet our requirement if we want to get formula results from the row and column axis and then display the results outside of the row and column axis result area?
Our approach was to use the Excel cell formulas in the workbook or possibly macros, but it seems that the Excel formulas will do.
Would someone clarify about the Cell editor for this requirement and how would you approach this?
Would this be effective to do the formulas from the query level? We are working on 3.5 SP11.Can Cell editor do the following:
1. Create structures
2. Run the query
3. The results of the structures are displayed in the row and column axis of the BEx Analyzer
4. Save as a workbook
5. Use the Cell Editor to pick and choose the cells (Not the Excel cells) to create formulas
6. The formula results are then displayed outside of the row and column axis.
Would this be another approach?
What scenario can Cell editor be used? What scenario can Cell editor not be used?
Thanks -
Validate mandatory field in BPS Excel layout
Hi Sdner
In my BPS Excel layout i want to have some characteristic as mandatory.If i don't put any value for them system will put a # by default which i don't want. system should prompt a error message that particular field is mandatory and enter some value. I can check this thru planning function(FOX) but the problem is all characteristics in that row will greyed out after function execution and hence can't be changed by user.
Does somebdy know if there is any workaround to solve this ?
Thanks
Tripple kHi Tarun
Use XL macros to validate data in a column.
When macro executes it first unprotect the worksheet,then we have our custom code for validation and error message, after that it is followed by a protect sheet command.
My Prob is that if error is there in any field raised by macro, user should be able to edit those fields but as we are protecting our worksheet in macro, editing is not possible.
I can't unprotect the worksheet because then user can change anything.
+Use a read function module on planning layout. While you are in layout change mode use lbexit_fm as a transaction code. You can read data from planning layout and write validation code and error message in ABAP function module.+_
I used this Tcode and FM, but they are ment to read Non SAP area of Excel sheet. The actual layout(Data Record)(SAP Area) which we want to read is not coming in internal table while executing FM.
On Execution it is saying that reading and writing on SAP protected data is not allowed.
If you have done any of these workaround then can you please put some more lights on this ?
Thanks
Tripple k -
Multipage PDF different layouts export to Excel format
Problem how to convert 24 page file with different layouts on each page to
clean Excel spreadsheet layout. Column layout returned is a mess and could
be resolved if individual PDF pages or selected parts of page could be
exported. I can send source file for examination.
All the best
Napier
Napier Williams
0539429221
086 2557237Hi Napier,
Unfortunately, Reader doesn't offer the ability to split a file, but you could download a free 30-day trial of Acrobat from www.adobe.com/products/acrobat and use that to split the file.
As for the file that isn't converting properly, I'd like to invite you to submit the file to Adobe using the File Conversion Issue form. While we can't promise an individual response to all file submissions, collecting files like your will help us improve the quality of our online services.
Best,
Sara
Maybe you are looking for
-
'DOWNLOAD ERROR!' when trying to update InDesign CC
'DOWNLOAD ERROR!' when trying to update InDesign CC 2012. There is no error 'code' number--just a 'RELOAD APPLICATIONS' button that does not do anything. I've restarted and tried to update multiple times, I've uninstalled and then tried to reinstall
-
SDK Beta 7 - Interface Builder Keeps Crashing
I am running 10.5.3 on a MBP. I was previously running Beta 4 with no problems. After installing SDK Beta 7 I can no longer use Interface Builder. As soon as I scroll the library scrollbar and reach the datepicker object the IB application beachballs
-
I set up my power mac g5 with an optical out cable to a surround sound receiver but no noise at all is coming out. The receiver is set up right, I changed the settings to optical out and nothing is happening. Anything this could be? Thanks
-
I cannot open my own file - whether my own or from another source.
Every time I go to open a file from the documents I edited in Photoshop Elements 10, this error message shows up: What in the world is going on here? I also cannot open up PDF links -- another error message comes up. I originally started a similar di
-
Smart-Collection (metadata status) not updated immediately
Hi I created a smart-collection that matches photos where their metadata status has changed on file system. So I changed the date with ExifToolGui (*click*). Closed the ExifTool and waited in LR 5.6 to see the smart-collection populated. But nothing