I have two tables: Table 1 & Table 2.
Table 2 has 4 columns :
Column: A
Column: B
Column: C
Column: D
Id like to create an expression in Table 1 that lists that name of the columns in table 2 that are empty within that row.
In the example table below, โXXXXโ represents the data. The column in table 1 shows the names of the columns in table 2 with no data in that row.
I am a novice and haven it a good crack with the following expression:
LIST(
IF(
AND(
CONTAINS(
Table2[ROW ID],[_THISROW].[ROW ID]), TRUE,
ISBLANK(
Table1[A]), TRUE), โ Aโ, โโ),
IF(
AND(
CONTAINS(
Table2[ROW ID],[_THISROW].[ROW ID]), TRUE,
ISBLANK(
Table1[B]), TRUE), โ Bโ, โโ),
IF(
AND(
CONTAINS(
Table2[ROW ID],[_THISROW].[ROW ID]), TRUE,
ISBLANK(
Table1[C]), TRUE), โ Cโ, โโ),
IF(
AND(
CONTAINS(
Table2[ROW ID],[_THISROW].[ROW ID]), TRUE,
ISBLANK(
Table1[D]), TRUE), โ Dโ, โโ))
Any help would be much appreciated!
Solved! Go to Solution.
LIST(
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Lecture notes])), โ Paraphrase Lecture notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Lecture notes reference source])), โ Lecture notes reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Lecture notes Condensed point])), โ Lecture notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]), TRUE,
ISNOTBLANK(
Index[My notes]),
ISBLANK(
Index[Personal Notes Reference source])),โ Personal Notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]), TRUE,
ISNOTBLANK(
Index[My notes]),
ISBLANK(
Index[Personal Notes Condensed point])),โ Personal Notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes])), โ Research notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Research notes])), โ Paraphrase Research notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes Reference source])), โ Research notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes Condensed point])), โ Research notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes])), โ Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes])), โ Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Statistics notes])), โParaphrase Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes Reference source])), โ Statistics notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes Condensed point])), โ Statistics notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion])), โ Informed opinionโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion reference source])), โ Informed opinion reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion Condensed point])), โ Informed opinion Condensed pointโ, โโ),
)
It's unclear whether you've tried your expression and, if so, what problem you observed.
Regardless, without having tried to parse your expression, here's an approach to consider:
ISBLANK([Table 2 ID].[A])
ISBLANK([Related Table 2s][A])
thanks for replying!
the tables are referenced but by a different column. My example was a condensed and redacted version of what Iโm trying to achieve but I appreciate how hard it is to give guidance without the full picture so my bad.
The expression works and has a green tick in the expression checker but I know this doesnโt always mean it will have the right results. Like I said Iโm a novice so Iโm working on common sense and YouTube videos. From what Iโve learnt, my understanding is that the IF( statements need to be connected with a AND or OR like in the picture attached?
I could be completely wrong, Iโve tried to add both and the expression strops working because is says the expression needs to have a true or false value. So Iโm a little stuck..
The tables donโt have any data yet and Iโm not sure how to check that it would actually return the right results. But Iโd like it to display the values like in my example table with commas as separators. With my limited knowledge and lack of data itโs hard to know if the e expression would produce that.
I think this might be one of those things thatโs I just wing it for now and come back to once Iโm further along. But if you can make sense of my laymanโs babble, any help you can give would be much appreciated!
No, you don't need and/or between the list items. You just need an appropriate expression for each list item. Like:
IFS(
ISBLANK( LOOKUP( [_THISROW].[row id] , table 2 , row id , a) ,
"A"
)
when I replace โtable 2โ with the table name , it says โexpression cannot be parsed due to unrecognisable token โtable 2โ
which is strange because Iโve never seen that error before. So I have no idea what it means or how to fix it.
I tried this expression on another table to see if it would work and it says that โIBLANKโ is used incorrectly. Iโm out of my depth I think..
Will the original expression that I posted successfully create a list separated by commas if I donโt add AND( between the ifs?
if so I just might keep it
(
LIST(
IFS(ISBLANK(LOOKUP([_THISROW].[Row Number], "Table 2", "Row Number", "A")), "A"),
IFS(ISBLANK(LOOKUP([_THISROW].[Row Number], "Table 2", "Row Number", "B")), "B"),
IFS(ISBLANK(LOOKUP([_THISROW].[Row Number], "Table 2", "Row Number", "C")), "C"),
IFS(ISBLANK(LOOKUP([_THISROW].[Row Number], "Table 2", "Row Number", "D")), "D"),
)
- LIST("")
)
LIST(
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Lecture notes])), โ Paraphrase Lecture notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Lecture notes reference source])), โ Lecture notes reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Lecture notes Condensed point])), โ Lecture notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]), TRUE,
ISNOTBLANK(
Index[My notes]),
ISBLANK(
Index[Personal Notes Reference source])),โ Personal Notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]), TRUE,
ISNOTBLANK(
Index[My notes]),
ISBLANK(
Index[Personal Notes Condensed point])),โ Personal Notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes])), โ Research notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Research notes])), โ Paraphrase Research notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes Reference source])), โ Research notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Research notes Condensed point])), โ Research notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes])), โ Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes])), โ Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Paraphrase Statistics notes])), โParaphrase Statistics notesโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes Reference source])), โ Statistics notes Reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Statistics notes Condensed point])), โ Statistics notes Condensed pointโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion])), โ Informed opinionโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion reference source])), โ Informed opinion reference sourceโ, โโ),
IF(
AND(
CONTAINS(
Index[Lecture ID],[_THISROW].[Lecture ID]),
ISBLANK(
Index[Informed opinion Condensed point])), โ Informed opinion Condensed pointโ, โโ),
)
User | Count |
---|---|
16 | |
7 | |
5 | |
5 | |
3 |