Dataview - Conditional table columns?

New to dataview and I’ve tried searching for this but can’t seem to find a solution.

What I’m trying to do

I want the TABLE dataview to show a column from a metadata property, but not all entries will have that property. So I want the column of that property to show for those that have it, and for those that don’t, to show this property instead. All entries will have either one or the other, there’s not a single one that doesn’t have neither or both.

Things I have tried

I’ve tried using the contains(file, "dataA") in the declaration of the table headers. I’ve also tried choice(typeof dataA !== "undefined"), dataA, dataB and I believe some more but I forgot to document the ones I have tried (aside from those two).

Any help would be appreciated!

I ended up realising this actually makes no sense, two column headers can’t interchangeably change in the SAME column. Sorta non-sensical from me, so I apologise… I guess that’s a funny-looking first post to this community :smiling_face_with_tear: