web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visable if status is ...
Power Apps
Answered

Visable if status is true for this item in another datasource

(0) ShareShare
ReportReport
Posted on by 151

ColorIf.pngI've got two datasources and one of them shows a gallery with basedata. In the other one, "Location" I've got one column "UI" that shows status for every item of the gallery; "true" of "false".

 

How do I get the blue circle visible if the status is true in the other datasource?

 

 

Please, if oyu like to help me, don't go to fast since I'm quite new to functions and Powerapps. I like to learn and understand about this just as much as get it done. 

 

Wish you all a pleasant weekend.

Categories:
I have the same question (0)
  • hpkeong Profile Picture
    2,944 on at

    Hi Ola

     

    Nice UI Design. Very professional look.

    You had added circle to indicate when it is "true".

     

    So, just "think from the circle's visibility" iteself, and you will get to what you want.

    - Circle1.Visible = If(Toggle1.Value = true, true, false)

    [Ignore the datasources, because you are only Showng on the screen (UI) and has no connection with the DS]

     

    Hope I am correct.

     

    Have a nice day even though weather in Europe is very cold.

  • OlaH Profile Picture
    151 on at

    Hi PK Hong

    Thank you once again for all your support.

     

     

    I'm afraid this doesn't work because I misslead you in my short description. This is the attendance app and the circle tell if a kid plays indoor or outdoor (true of false). The toogle in the picture turns green when the kid is present. 

     

    As far as I understand I could either write a function that reads from the other datasource or develop your method and in some way add "thisitem". In that case I also need to now that the toggle always is updated.

    When I tried  to change "Toogle1" to "Toogle2" every circle got blue.

     

     

    Thanks for the kind word about the design. Well, I believe you appreciate a shadow in more ways than we do here up north. It's -10 C here today so we all want to see and feel the sun. Smiley Wink

     

    Have a nice day

     

    Ola

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @OlaH,

     

    What is your current situation?

    Do you need any further assistance on this?

    And if you have any workaround, please feel free to share it here.

    Besides, could you please share some more information regarding the data used, and the purpose of the controls/Icons (the circle icon and the toogle)?

    What data are stored under the two tables used? 

    If the circle here is only used to show the status of the item listed in the gallery, then we may take a try with the following method:

    Change the Visible property of the circle icon with the formula below:

    If(Isempty(filter(Anotherdatasource, Datasource.column=thisitem.StudentName)),false,true)

    Adding the function reference:

    Filter, search and lookup functions in PowerApps

    Regards

  • Verified answer
    OlaH Profile Picture
    151 on at

    Hi!

    Once again I've been helped by @hpkeong and this time he first showed me how to use Lookup and then, the mistery of "True" and "TRUE".

     

    My app is about attendance at a after school center and I wanted the circle to be visible depending on:

    1. if it was today (DateColumn)

    2. the name of selected kid (Name)

    3. and the class/department at the after school center. (Dep)

    4. and the UI value was "true". 

     

    Circle1.Visible =

    If(LookUp(Location; DateColumn = TodayDate.Text && Dep= StartGallery.Selected.Result && Name = StudentTB.Text).UI="True"; true; false)

     

    If(LookUp(datasource; condition1 && condition2 && condition3).ColumnOfInterest="True"; true; false)

     

    Don't miss the capital "T" in "True"!

    @hpkeong found out that in Excel it says "TRUE" but in the formula it's got to be "True". Otherwise it would work.

     

     

    I hope this could be as help for someone else as it was to me. I love to learn!

     

    Ola

  • Mayurs05 Profile Picture
    30 on at

    If you have multiselect dropdown values and you want to have conditional visibility you can use the following condition in visible property of that Card or whatever,

     

    If(CountIf(DataCardValue.SelectedItems,Value="Selection Required")>0,true,false)

  • RachelPalya Profile Picture
    43 on at

    Hi there, 

     

    I had the same issue and the workaround that worked for me was adding a field such as title to a collection for the toggle OnSelect, then for the blue dot change the visible if in the collection.  Screenshots below, hope that helps!

    Visible if in Collection.PNG
    On Select add to collection.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard