guid
2 TopicsPathContains from SelectedValue issue with GUID
I have a Table of equipment records that are connected through the Account to Regions. When I attempt to use the PATHCONTAINS() with SELECTEDVALUE() It always returns False() where if I hard code the GUID it works as expected. I created a seperate table of Regions to bypass any relationship filtering that may occur. HeirarchyRegionInPath = VAR SelectedRegion = "c4be4e26-d198-ec11-b3fe-000d3a09e9da" VS regionselected = SELECTEDVALUE('Region list'[Region]) VAR RelatedRegionPath = LOOKUPVALUE( ESI_region[HierarchyPath], esi_region[Region], RELATED(account[esi_territory]) ) RETURN IF( NOT(ISBLANK(SelectedRegion)) && PATHCONTAINS(RelatedRegionPath, SelectedRegion), TRUE(), FALSE() ) I must be missing something, all formats are text, tried Column VS measure and only measure would populate RegionSelected Tried CONTAINSSTRING() rather then PATHCONTAINS(), same result. Any help appreciated.Solved2.6KViews0likes15CommentsMultiple IF followed by NOT (syntax error?)
Hey team, Recieved a lot of really useful information from this community already! Thank you! I'm essentially converting GUID's from Salesforce back to staff names for a visual: Staff = IF('DataTable'[Staff GUID]="005Mn1234567", "Joe Bloggs", //the above converts the GUID to "Joe Bloggs" IF('DataTable'[Staff GUID]="005Mn1234568", "Jane Doe", //the above converts the GUID to "Jane Doe" The issue I'm having - is currently I only know a portion of the GUID's, and I'm hoping for those I don't, in the calculated table it will just show the GUID. In my mind it went something like: NOT('DataTable'[Staff GUID]=("005Mn1234567", 005Mn1234568"), 'DataTable'[Staff GUID]) ie- if the GUID isn't specified as a staff name, just display the GUID. However getting all sorts of sytax errors and #error. Anyone have any direction or advice on this one? I'm extremely green with DAX.Solved888Views0likes3Comments