For some reason my brain is drawing a blank on this.
I have this code
If(Filter('Asset Photos*DO NOT USE',Substation.Value = Gallery4_23.Selected.Substation && AssetClass = "Circuit Switcher" && AssetPosition= Gallery4_23.Selected.'Asset Location')
However, that only works great if I have one Asset Class to reference. In my case I have 3 I need to have switch between.
Switch(
Subtitle2_213.Text,
"CT",
Filter('Asset Photos*DO NOT USE',Substation.Value = Gallery4_23.Selected.Substation && AssetPosition= Gallery4_23.Selected.'Asset Location'),
"PT",
Filter('Asset Photos*DO NOT USE',Substation.Value = Gallery4_23.Selected.Substation && AssetPosition= Gallery4_23.Selected.'Asset Location'),
"CCVT",
Filter('Asset Photos*DO NOT USE',Substation.Value = Gallery4_23.Selected.Substation && AssetPosition= Gallery4_23.Selected.'Asset Location')
)
I know this code is not correct for the most part because it is not recognizing the Substation or the Asset Class, I am missing something.
I always struggle with the syntax with a Switch.
Thanks in advance for the assistance.