Combination of ref and a filter

Hello guys,

The reason why this is difficult is:
There is a parent table (ACCOUNT)
There is a child table (Abbonnement)
There is a grand child (Wasbeurt-Abbonement)
But there is also an grand grand? chil table (Nummerplaten)

AND

There is also a connection between
The parent table (Acount)
The grand child/ child table (nummeplaten)

and now i want to have a ref column in the table (wasbeurt-Abbonement) with a reference to the table nummerplaten where only the account is the same we we connect the nummerplate to.

I hope this is clearโ€ฆ

Thank you!

Solved Solved
0 3 178
1 ACCEPTED SOLUTION

OK, thanks for futher explanation @Hinse_Wouters

The picture of the specs is helpful.
What about that ?
In Wasbeurt_abbonement, this will give you a list of Nmmerplaten that matches with abbonementenโ€™s account:

FILTER("Nummerplaten",
  [Account]=[_THISROW].[Abbonementen].[Account]
)

Please note you have to enter this expression in the valid_If expression field.

View solution in original post

3 REPLIES 3

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Hinse_Wouters

Not exactly clear, but I will give it a try

in Wasbeurt-Abbonement: Virtual column: โ€œAccountโ€ (โ€œAncestorโ€ )
[Abbonnement].[ACCOUNT]
in Nummerplaten: Virtual column: โ€œAccountโ€
[Wasbeurt-Abbonement].[Abbonnement].[ACCOUNT]
or
[Wasbeurt-Abbonement].[Account] if you made first suggestion

in Wasbeurt-Abbonement: Virtual column โ€œyourQuestionโ€, type List, subType Ref:

FILTER("Nummerplaten",
  AND([wasbeurt-Abbonement]=[_THISROW],
      [Account]=[_THISROW].[Account]
  )
)

You may want to share screenshot of your table to make it clearer.
For reference:

Hello,

Thank you for your help. We are in the good way, but we arenโ€™t there (my fault)โ€ฆ

So:
When we make an virtual column in wasbeurten_abonnement โ†’ We canโ€™t chose wich โ€œnummerplaatโ€ (=licensesplate) we chose in the form of wasbeurt_abonementโ€ฆ
Look for image (i have made an ref column โ€˜nummerplaatโ€™ with refence to nummerplaat table), that is where iโ€™m looking for, but it looks like i canโ€™t filter only those nummerplaten that are linked to the correct acount.


(here i canโ€™t filter on acount where my wasbeurt_abonement is linked to and y nummerplaat is linked toโ€ฆ)

And to be clear โ†’ Wasbeurt -abbonement is a table, not an column. When i give this in:
โ€œFILTER(โ€œNummerplatenโ€,
AND([wasbeurt-Abbonement]=[_THISROW],
[Account]=[_THISROW].[Account]
)
)โ€

OK, thanks for futher explanation @Hinse_Wouters

The picture of the specs is helpful.
What about that ?
In Wasbeurt_abbonement, this will give you a list of Nmmerplaten that matches with abbonementenโ€™s account:

FILTER("Nummerplaten",
  [Account]=[_THISROW].[Abbonementen].[Account]
)

Please note you have to enter this expression in the valid_If expression field.

Top Labels in this Space