cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
martinconroy
Frequent Visitor

One app, two data sources?

Hi,
I have two essentially identical SharePoint lists that I want to use a single app to interact with. They both contain sales data (US / UK) in identical fields, with the only difference that the currency fields represent $ / £.

It makes sense that I can use a single app to edit the data, but is there a way I can have a switch to toggle which list the data is drawn from?

 

Any help appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
martinconroy
Frequent Visitor

Solved myself after a change of focus! Added a toggle switch and amended the gallery Item property to be conditional based upon the toggle value - as simple as that!

 

Will leave this here in case it helps someone else!

 

martinconroy_0-1612264043284.png


SortByColumns(Filter(If(country.Value = false,[@'Job Book'],[@'Job Book (US)']), StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

View solution in original post

1 REPLY 1
martinconroy
Frequent Visitor

Solved myself after a change of focus! Added a toggle switch and amended the gallery Item property to be conditional based upon the toggle value - as simple as that!

 

Will leave this here in case it helps someone else!

 

martinconroy_0-1612264043284.png


SortByColumns(Filter(If(country.Value = false,[@'Job Book'],[@'Job Book (US)']), StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,514)