I am looking to build this gallery on Power Apps for selecting people from a SharePoint directory. However, I am having trouble with showing the correct Function and Location information. As the image shows, it is presenting numeric values. These columns on the SharePoint are referenced to managed metadata.

The term store for location looks like this: (there are no numbers... just words corresponding to continents, regions, countries, etc).

On this example, the location field should say Asia instead of 1694.
Can someone tell me what this value represents and how can I fix this?