I have a calculated column named "Link" which is used to show the link (url) of a particular list item. The formula in the calculated column adds/appends the value in the ID column. The formula works for existing items, However when new items are added the calculated column does not contain the value of the ID column. However if I go to the settings of the "Link" calculated column re-write the formula the Click OK the, the formala works and adds the value of the ID column to most recent list item. The problem starts again when a new list item is added in that the value of the ID column is not added and again I ma having to keep going to the "Link" calculated column settings and again re-write the formula.
The formula is the following:
="http://www.sampleweb.com/articles/item.aspx?ListName=Articles%20Bytes&ID="&ID
and the results it produced are the following:
http://www.sampleweb.co.uk/articles/item.aspx?ListName=Articles%20Bytes&ID=44
but again when a new item is added the following is displayed
http://www.sampleweb.co.uk/articles/item.aspx?ListName=Articles%20Bytes&ID=
Does any one have any suggestions as to why the formula does not work when new list items and /or how to resolve it.
Any assistance will be greatly appreciated
many Thanks
I solved similar problem with workflow workaround. It's helpful to use workflow also for later calculation of calculated values...
Related
I want to use a macro to filter columns in a table. I want to filter for values that are higher than a value I want to put in cell, to be able to easily change the filter. Does someone have a trick for doing this with vba?
Many thanks, Bram
Record a macro whilst filtering a table on a column value. You would right click on the table column header of interest whilst recording the code and select Number_Filters > Greater Than and enter your desired number. That would give you the outline code. You can then amend the code to pick up the desired value from a specified cell. If applying filter to multiple columns record macro whilst doing this process over several columns.
Thank you for you answer. I tried this already, but I could not get the macro to pick from a specific cell. If I stored the value of the specific cell under as 'value' and put that in the outlined code, it would just do Greater Than value.. DO you have shortcut for this?
Thanks!
I am working on a SSRS report with a Multi Value Parameter which contains list of names. I have written an expression for the title that works like "Result for SELECTED NAME". It also have an option of (Select All) which displays all the results with title as "Result for MULTIPLE NAME". It is working fine up to this part.
Now I have to modify the report like, If i select multiple values, the report should break into pages with each selected name on different page with title for that individual parameter value(name) as "Result for SELECTED NAME".
Please help me. Thank you.
You can place the entirety of your current report (excluding headers/footers) into a List object. I assume youa re returning the selected values from the parameter (like Manager Name) as part of your DataSet. Assuming this is the case
Create a new list
Insert the contents of your report into the rectangle of this List
Right click the List Row Header and Select Row Group -> Group Properties
Set the Group to Group on
=Fields!ManagerName.Value
This approach will take a simple table like this
And break it into a list like this
Then you can just set the Tablix Properties of the List to Add a Page Break After to checked
Hopefully this is helpful. If you have further questions on this then please let me know
I worked on it and found a way to make it happen. I first created the row group for Names. Then applied the page break for each instance option. Then deleted that group column (Only deleted column but not group). Then added that group in a static column on the top, and wrote an expressions to show that group itself as a title using concatenation.
But here I faced another problem, when there is no data for the selected name, the title row isn't displayed in the preview as it also a column in the table.
I want to use the simple formula:
="FIX_" & [ID]
The issue with this formula occurs when I confirm the calculated function, the formula appears to revert back to:
="FIX_" & ID
The problem is now that these are no longer referencing the [ID] column so the result returns
"FIX_"
for all records. This does work for the first record entered but any other subsequent entries display this error.
Is this a known issue?
The [ ] notation has got nothing to do with it.. [ ] are only required if fieldnames contain spaces.. As you experienced SharePoint will strip those [ ] on save.
why ID is not listed as a usable Field for Formulas
You can not use the ID in a calculated column because on first Item creation the Calculated Column Formula is processed before the item is written to the database and gets its ID.
Thus ID is 0 for newly created items
When an Item is changed/updated the ID is correctly populated and used with the correct value in Formulas.
Work-around is to create a Workflow (which runs after Item creation) that gets the ID and writes it to another field, and use that in your Formula
or have the workflow changes something else in any field so an item update is forced; reading the Title and write it back in the same field will do.
So you only want to display the link in a VIEW.
You can then use HTML/JavaScvript in a Calculated Column to extract the correct ID from the HTML TR table row
and create the href attribute.
Create a Calculated Columns, and set the datatype to Number!
Paste the Formula (as is, including & characters, line breaks will be ignored):
="<div ""style=text-align:left""><a><img src=""/_layouts/images/blank.gif"" onload=""{"
&"var row=this;while(row.tagName!='TR'){row=row.parentNode;}"
&"var ID=row.id.split(',')[1];"
&"this.parentNode.href='v://database//FIX_'+ID;"
&"}"">database folder</a></div>"
Note: the outer div is added because a Number column is aligned to the Right.
This only works in VIEWS! Not on FORMS!
I am trying to create a couple of reports from data on another Excel worksheet based on the value in a drop down list. I am using the MATCH and INDEX functions and have created Named Ranges of the columns of data. I am able to get the first value I want in the report but none of the others, even though when I debug by evaluating the formula it points to the right cell but still displays #REF! instead of the actual value from the referenced cell.
I'll do my best to make this clear:
In "POST_Data" worksheet I have 4 columns titled Course Name, Course Length, Attendee and Date Attended. Currently I have 33 rows of data (plus the header row) but I need the reports to be dynamic since new data will be added from time to time.
I have created Dynamic Named Ranges of the data using the OFFSET function (e.g. for the Course Name data I have a NameRange called CourseNamesData = OFFSET(POST_Data!$A$2,0,0,COUNTA(POST_Data!$A:$A),1)
In the "DashBoard_and_Data Entry" worksheet I have a two report areas: one to report the Course Name and Date Attended for a specified Attendee (specified by a drop down list in cell C7) and the other report to provide the Attendee Name and Date Attended for a specified Course Name (specified by a drop down list in I7).
In row 8 I report the column that the data belongs to in the POST_Data worksheet
What IS working: When I choose an Attendee from the drop down list in C7, I correctly report the first of the Course Names for this attendee from the data in the POST_Data worksheet. I used the following formula to do so: =INDEX(CourseNamesData,MATCH(C7,AttendeeNamesData,0),B$8)
What is NOT working: The corresponding "Date Attended" data when I use a similar formula as the one that is working. I have: =INDEX(DateAttendedData,MATCH(C7,AttendeeNamesData,0),C$8) but this gives me the #REF! error.
Again, when I try to follow the data that this formula points to, it looks like it is pointing to the correct cell but not showing the result.
Another issue is how to get all the data corresponding to the choice in the drop down and not just the first row. So for example, if I choose Richards, K. from the attendee list and he has attended 4 training courses, I need all 4 to show up, not just the first one.
I appreciate any help or insights on this. If you know of a better way to display the workbook contents, please let me know.
Thanks!
Can you provide a screenshot so that I can better understand the issue?
With regard to your post_data worksheet, you might find it easier to turn the data into a table. You can then point your named range to the column within the table without needing to use the offset function, and your range will update automatically as you add to the table.
I have a entire playlist on my youtube channel devoted to using ranges and tables if you are interested. https://www.youtube.com/playlist?list=PL1nLTDk2QLL9415OPSjIICJs1EeV-HeK3
I have to hide some member either from row or column (like [Markets].[APAC]). When I hide this member then in "Grand Total" still showing the count of hidden column.
Here is sample query ... similar to my requirement....
select NON EMPTY Except({Hierarchize(Union({[Markets].[All Markets]}, [Markets].[All Markets].Children))}, {[Markets].[APAC]}) ON COLUMNS,
NON EMPTY Hierarchize(Union({[Product].[All Products]}, [Product].[All Products].Children)) ON ROWS
from [SteelWheelsSales]
where {[Measures].[Sales]}
Please provide solution on this ..
Thanks in advance.
Sagar
Not a lot of context here, but assuming you are an EE customer doing this in Analyzer, there are a couple of relevant options:
Under "Report Options", or by right-clicking on the Grand Total label, there is a check box to toggle display of totals that include filtered out values. Depending on your version, which you did not specify, this may be defaulted to include the filtered out values. Unchecking it would correct your problem.
Also check out the "Subtotals" option in your measure's right-click menu to ensure your aggregation type is correct for your purpose.