I'm trying to map an assembly to a part number so multiple criteria to one field.
I have an assembly, which is of a certain length, but also will have multiple add ons. What is the best way to map a length, assembly, and say two or three add ons that might be different combinations to a part number. The add ons are related to a generic ID in a one to many relationship.
Gen.id add on
01 addon4
01 addon5
02 addon4
03 addon2
03 addon5
04 addon4
04 addon5
So then if I want the part number to get me an assembly with addon4 and addon5 which is against gen.id01 and 04 how to do this?
I also want to concatenate the multiple fields to fill in the description of the part number.
Related
I try to create (in SSRS) a summary of incomes in years and I'm stuck when I try to compare them.
e.g. of my table, where Rok = Years:
I have table like at image above where A and B are Expressions (sums of incomes). Columns are years from the SQL query, So 2020 will appear soon. I would like to divide 2019 vs 2018 but dynamically so if 2020 will appear, everything will calculate between 2020 and 2019. Do you know any solution for that ? Thanks in advance :)
First you need to have an individual filtered column group for each year.
Second add in column outside group right, labelled as compare and
Insert the following expression: =ReportItems!Rok.value - ReportItems!Rok1.value ( Rok and Rok1 are the Name available from Text Box Properties for each filtered column group)
I don't if I'm being a knucklehead, but I've searched considerably and tried several options: can't make it happen. Here is the issue.
I have the following Data Query:
First of all, sorry it's French. Secondly, as you see, the fields are "File number", the "Year" and the "Number of distinct patients".
Wanted result: I want to filter for Case numbers who appear both at 2015 and 2016.
As you see, certain patients showed up several years in a row. However, I want to find out how many showed up in 2015 AND 2016 only (not 2014, etc.) (so a total of 2 visits for the 2 years combined). So solely filtering in my Data Query on 2015 and 2016, doesn't do the job, since it fails to exclude the patients that only showed up once. Furthermore, filtering on 2015 and 2016, and then Count(Fields!File_number.Value)=2 wouldn't work since it fails to exclude the patients that might have been here in 2014.
I have tried several Boolean expressions, but as soon as I include 2 years in my filter, it blanks my tablix out. (Understandibly cause I tell it that Fields!Year.Value must be equal to 2015 and 2016 simultaneously).
So I tried bypassing it by telling it that and did the following:
Expression:
=IIF(Lookup(Fields!FileNumber.Value, Fields!FileNumber.Value, Fields!Year.Value, "Dataset")=2015 AND Lookup(Fields!FileNumber.Value, Fields!FileNumber.Value, Fields!Year.Value, "Dataset")=2016, True, False)
It works for 1 year only: as soon as I add 2015 either by and "AND" or by adding an additionnal filter, mytable goes blank.
Any suggestions? Thanks!
Yeah, this isn't an easy thing to solve, you aren't being a knucklehead :) You are correct about the double boolean expressions in the query and the two combined lookups won't work either. In the case of a lookup, LOOKUP returns the first match in a dataset, so every time, both of those looksups are going to return the first value.
There is another function called LookupSet which does return ALL matches from a query though. It should be possible to create an ugly expression around this function to test specifically whether the string 2015 and 2016 both appear in the results with something like:
=Join(LookupSet(Fields!FileNumber.Value, Fields!FileNumber.Value, Fields!Year.Value, "Dataset"),",")
and then substring searching for both "2015" and "2016" (I'll let you fiddle with that part)
I have a chart that is trying to show dates in the x-axis. I really need it to be a category and show text labels instead. I can't figure out a way to switch in Access 2007. What can I do?
Best way to do this is to trick access into thinking that the values are not dates. You can convert to strings, add special formatting, or just an extra space like Jan 15, 2015. Two spaces between Jan and 15. Then it will automatically switch from Date to Category.
I have to produce a report where in my row values should sum up on collapse (summary data) but column values should not sum up on collapse, rather show the last value. Here is a sample report
Fully expanded report
-2012
Jan Feb Mar
-India Chennai 10 8 9
Bangalore 15 15 16
Rows collapsed
-2012
Jan Feb Mar
+India 25 23 25
Columns collapsed:
+2012
+India 73
However, I don't need summarized data as sum for column collapse. The right data would be the last one available in the month data, which will be
Columns collapsed:
+2012
+India 25
I don't find any semi additive function available to be used in the report's tablix cells. Either i can use sum or last which applies to both rows and columns summary, which i don't want.
We don't have a problem with this in pivot table as we have defined the measure as a semi-additive measure on time dimension. The only problem is with the report designed using SSRS. Any idea on how this can be achieved?
It sounds like you are using a cube as your data source? If that's the case, don't use the SUM function in SSRS for the expression in the textbox. Instead, use the AGGREGATE function. That tells SSRS to get the value from the cube. If it's defined correctly in the cube (as shown by your pivot table) then you should get that same value in your report.
We are working on an application using MS Acces 2003 and SQL Server 2005.
We are saving a fields that contain a text data for example 002215.28 but we want to display it on the screen in a special format for example like this 00 22 15.28.
To do so on the Form Design toolbar and in the Format property box, we type a custom format
00 00 00.##\.####
but when we open the form screen the data appear like it was saved in the table
Please may you advise
It seems that the column may be a text column, if so, you need say, ## ## ##\.##
To format the control using number formats, you must first convert to number with, say, Val:
=Val([TextString])
Make sure that the control does not have the same name as the column, call it, say txtTextString.
There are various disadvantages to this, including:
The control is not editable
Val will return zero for alphas, giving 00 00 00..
Val will return an error for Null values
The last two are not difficult to work around.
If the first is a problem, you may have to consider some VBA to fill the field.