Filemaker: Portal with Multiple fields from multiple tables - sorting

I want to display multiple fields from different table on a portal.
Table1: Primary Key ID_patient
Table2: Primary Key ID_aneurysm Foreign Key ID_patient
Table3: Primary Key ID_Imaging Foreign Key ID_aneurysm
Table1(Patient)-->Table2(Aneurysm)-->Table3(Image)
I create a portal in the layout ID_patient. I sort the portal by ID_aneurysm. I then place the fields I need.
I expect this kind of result:
ID_aneurysm1 dateofdiscovery1 ID_imaging1 dateofimaging1 image1
IDaneurysm1 dateofdiscovery1 ID_imaging2 dateofimaging2 image2
IDaneurysm2 dateofdiscovery1 ID_imaging1 dateofimaging1
But the second ID_imaging2 and the records linked to it do not appear...
I had this kind only:
IDaneurysm1 dateofdiscovery1 ID_imaging1 dateofimaging1 image1
IDaneurysm2 dateofdiscovery1 ID_imaging1 dateofimaging1 image1
The portal do not display the ID_imaging 2 from ID_aneurusysm1
I tried to sort it by ID_imaging and I have
ID_aneurysm1 dateofdiscovery1 ID_imaging1 dateofimaging1 image1
IDaneurysm1 dateofdiscovery1 ID_imaging2 dateofimaging2 image2
IDaneurysm1 dateofdiscovery1 ID_imaging1 dateofimaging1
All the data are displayed but the data related to the table ID_aneurysm are the all ID_aneurysm1 and not ID_aneurysm2 and so on...
Here is the link with the pic of sorted by table2 (ID_aneurysm)Sorted by aneurysm_ID
Here is the link with the pic sorted by table1 (ID_imaging)sorted by imaging
I want to be able to display in table1 (patient_ID) all Imaging_ID information from table3 with the corresponding information of Aneurysm_ID from table2
Could you help me?
P.S: If you think about a more relevant title let me know I am a newbie in Filemaker

If you want the portal to show all images related to the patient, you must define the portal to show records from the Images table.
In order to display the data from the corresponding record in the Aneurysms table, use either calculation fields defined in the Images table, or place another occurrence of the Aneurysms table on the graph like this:
Patients -< Aneurysms -< Images >- Aneurysms 2
and place fields from Aneurysms 2 in the portal.
Note that aneurysms without images will not be shown.

Related

Google sheets drop down with extra description - not dynamic

I'm trying to create a drop down picker that shows a list of values, but actually stores a related value.
The list I'm working with looks like:
ID Desc
AA An option
AB Different option
B3 Some other option
So I want the user to see the description, but the value stored when they have picked one is the ID column.
I've search a lot but can only find either simple data validation or dymanic (Multiple dropdows based on a prior drop down)
My users won't remember the ID's, but by having the text descriptions they will find it easier.
Any help please?
Lots of searching for clues, but can only find either simple single column drop downs, or dynamic.
Lets say, you want to select description id D7 cell then want to show result from J Column as per ID of selected description. Then Try-
=XLOOKUP(XLOOKUP(D7,B2:B4,A2:A4),I2:I4,J2:J4)

Create complex Oracle report

I have a sale table with the following columns:
name, city, area, target, date, sale
I want to show 8 different area data on a page. Please guide me what I need write 8 queries or we have any other solution. To create a report in Oracle like I show in image please help me how I do this. Thanks waiting your kind response..
You'll need to organize your result set into groups. Groups indicate result set records that have something in common (such as all areas of New York).
In general, this structure will suit for your needs:
Group 1: City, Name -> Group 2: Area, Target -> Group 3: Date, Sale
For all groups declared, a repeating frame is created. You'll need to use a grid layout for the repeating frame of Group 2, in order to get the desired output.

Create multipe charts using filtered data from a table

I'm developing a report on Report Builder 3.0 that should look like following image.
Each pie chart should receive the value of the properties "Approved" and "Reproved" for a specific date and machine.
Is it possible to filter these properties on each Date/Machine group? The DataSet may include other properties that will be shown on the Property/Value table, but will not be included on the chart
At this moment I have the following model for the report
I´ve tryed to use the lookup function, but, as expected, it returns all the values on the DataSet. Is it possible to narrow the search scope?
Below is the DataSet that I'm using for the test:
|Machine|Machine_ID|Date|Property|Value|
|--------|---|----------------------|--------|---|
|Machine5|A|2017-02-12 20:00:00.000|Total|200|
|Machine5|A|2017-02-12 20:00:00.000|Approved|150|
|Machine5|A|2017-02-12 20:00:00.000|Reproved|50|
|Machine2|B|2017-02-12 20:00:00.000|Total|0|
|Machine2|B|2017-02-12 20:00:00.000|Approved|0|
|Machine2|B|2017-02-12 20:00:00.000|Reproved|0|
|Machine1|C|2017-02-12 20:00:00.000|Total|100|
|Machine1|C|2017-02-12 20:00:00.000|Approved|80|
|Machine1|C|2017-02-12 20:00:00.000|Reproved|20|
|Machine1|C|2017-02-13 20:00:00.000|Total|300|
|Machine1|C|2017-02-13 20:00:00.000|Approved|200|
|Machine1|C|2017-02-13 20:00:00.000|Reproved|100|
Thank you.
This should be doable with row groups in a list.
Insert a list
Add a parent row group to group on DATE.
Group your details region on MachineID
Insert a tablix into the detail region rectangle
Insert a graph next to it
Insert a column next to the detail region (to the left) to get the MachineID column
It should look like this..
This shows the two row groups, and the detail region with the tablix and the graph.

Filemaker self join portal filtering

I have a database of items that are imported from a number of XML sources, into a table called Import.
Each XML source has its own SourceID number. This number is put in every item record.
Each import is logged in a related table called Import_History. This logs the SourceID, date of each import, and how many items were imported.
So...
TABLE: IMPORT
SourceID = Number
TABLE: IMPORT_HISTORY
fk_SourceID = Number
ImportDate = Timestamp
ImportCount = Number
RELATIONSHIP
Import::SourceID = Import_History::fk_SourceID
WHAT I NEED
On the Import table layout, I want a portal that shows records from Import_History so I can see when each XML source was last imported. I only want to show the most recent Import_History record for each SourceID.
I think I need a cartesian join between Import and a new table occurence of Import_History (Import_History_All), and a self join of a new table occurence of Import_History (Import_History_All_Self_Join).
So...
Cartesian
Import::SourceID x Import_History_All::fk_SourceID
Self Join
Import_History_All::fk_SourceID = Import_History_All_Self_Join::fk_SourceID
WHAT I'VE DONE SO FAR
I have followed this:
http://www.filemakertoday.com/com/archive/index.php?t-32667.html
and this:
http://scarpettagroup.com/filemaker-portal-show-distinct-value-tutorial/
But it does not filter the records. I always get all of the Import_History records in the portal. I have endlessly googled and not figured this out.
Can anyone help?
**EXAMPLE DATA**
*Import*
- SourceID: 1234
- Item: Widget1
- Price: 3
- SourceID: 1234
- Item: Widget2
- Price: 5
- SourceID: 1234
- Item: Widget3
- Price: 10
*Import_History*
- fk_SourceID: 1234
- ImportDate: 22/03/2016 12:00:00
- ImportCount: 3
- fk_SourceID: 1234
- ImportDate: 21/03/2016 12:00:00
- ImportCount: 2
Import_History_All::fk_SourceID = Import_History_All_Self_Join::fk_SourceID
The relationship above is a join that will result in every record with the specified source ID being displayed in the portal. Basically the relationship above will display the designated portal records in the IMPORT HISTORY table that have the same SourceID. If you wanted to view the most recent record for the sourceID of the record you are on this would be the relationship that is required, and all that would be left is sorting the portal and filtering to only show the most recent value. This would be fine, if you wanted only the most recent importation for the SourceID you are currently on.
On the Import table layout, I want a portal that shows records from Import_History so I can see when each XML source was last imported. I only want to show the most recent Import_History record for each SourceID.
The most efficient way to display only the most recent record of each SourceID would be to utilize another table to store the most recent values. This table would contain records with unique values for Source ID ( each source has only one record ) that would contain the Import ID of the most recent record. The import ID is a primary key for the Import_History table that you would add to define a distinction between each Import_History record. Modification of your current importation script is necessary to achieve this result. The modifications should include a variable that captures the Import_ID. The relationship between the tables Import and Import_Tracking will only bring up one record, and then you can use the set field script step to set the field Import_Tracking::Most_Recent to the previously defined variable that holds the value of Import_ID. At this point you have the Import_Tracking table, which contains the unique Import_ID of the most recently updated record for each source. You can use a Cartesian join in the Import table with the Import_Tracking table to show all the records in the Import_Tracking table, which only has the most recent importID for each unique source. If you want to see data from the Import_History table all that you need to do is create a relationship between the Import_Tracking and Import_History table, and then you can place related fields inside of your portal to view the data. I have included the relationships and fields that should be added below. Please let me know if anything doesn't make sense.
RELATIONSHIP:
Import::SourceID = Import_Tracking::fk_SourceID (w/ ability to add records via relationship)
Import_Tracking::Most_Recent = Import_History::ImportID
TABLE: IMPORT_HISTORY
fk_SourceID = Number
ImportDate = Timestamp
ImportCount = Number
ImportID = Text/Number (Primary Key)
TABLE: IMPORT_TRACKING
fk_SourceID = Number
Most_Recent = Text/Number (Whatever you defined "ImportID" as)
I want a portal that shows records from Import_History so I can see
when each XML source was last imported. I only want to show the most
recent Import_History record for each SourceID.
If you sort the related records from Import_History by ImportDate (in the relationship setup), then the most recent import will become the first related record.
If you place fields from Import_History directly onto a layout of the Import table (outside of any portal), they will show data from the first related record in Import_History.
This presumes one simple relationship where:
Import::SourceID = Import_History_All::fk_SourceID
I don't see why you would need any other.

Google Sheets For Filtered Drop Down

I have two sheets: CONTACTS and UPDATES.
On the CONTACTS sheet there are 2 columns: COMPANY and NAME. If I have 10 contacts at a company, then there will be 10 rows with the same company in column 1, and the names of the 10 people in column 2. Now of course there's a lot of companies and names on this list.
On the UPDATES page, column 1 is a drop down that lets me select the name of the company. In column 2 I want to have a pull down that filters and shows me only the people in the company that's in column 1.
I've searched quite a bit and while I have found things that are similar, none of the tips are quite right / work for my use case.
Is there an easy way to do this?
Thanks for your help!
You can use UNIQUE + FILTER to filter the results, but that won't give you the a dropdown. For a filtered dropdown, you can use the formula to get the filtered list and then use that as your range.
For example, in your CONTACTS tab, add a new column FilteredList, with this formula in the first row:
=unique(filter(B:B,A:A=E1))
where B:B is the NAME column, A:A is the COMPANY column and E1 is where you select the company name on the UPDATES page.
Now, instead of making the NAMES list as your valid entries, set it to FilteredList.

Resources