Directly referencing is not possible as the Patch function required a valid data source. As a workaround to this, you can use an If condition as:
Variable to select DataSource: Set(SelectedDataSource,"Company$G_L Entry")
Patch(If(SelectedDataSource= "Company$G_L Entry",'Company$G_L Entry',SelectedDataSource = "Company2$G_L Entry",'Company2$G_L Entry'),Defaults(If(SelectedDataSource= "Company$G_L Entry",'Company$G_L Entry',SelectedDataSource = "Company2$G_L Entry",'Company2$G_L Entry')),{Title:"VarTest"})
Note: Make sure that the columns should be name for the data sources to work properly.
If this differs, please share more details about the schema of the datasources, so that we might be able to help you better.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!