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 / DataCards Conditional ...
Power Apps
Answered

DataCards Conditional Visible based on Multi Select Combo Box

(0) ShareShare
ReportReport
Posted on by 46

I am using a SharePoint list to connect to my PowerApps.

 

I have a drop down choice of three items 

Report Type:

Symptomatic

Tested Positive

Close Contact

 

Then I have three date fields based on what is chosen in the multi-select drop down.  I only want the date fields shown for the selected items.  For example if the user selects "Symptomatic" AND "Tested Positive" then I want to have the dates for those two only displayed.  Whereas if they select "Tested Positive" only then, I only need to see that one date field.

 

Thank you

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Can you show a sample of the list showing the columns involved?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Will_Y ,

    You can use conditions like below.

    If("Foo" in DataCardValue7.SelectedItems.Value,true,false)

    VijayTailor_0-1601061382280.png

    VijayTailor_1-1601061447111.png

     

    like below for visible properties for DataCard.

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Will_Y Profile Picture
    46 on at

    Best I can do to explain.  PA1 shows the drop down multi-select box in PowerApps.  PA2 shows what happens if I select any one of the three choices, I only see one date box show.  PA3 (I manipulated the image to make is show what I want) shows how I would like it to display, allowing multiple sections and making visible the date boxes accordingly.  Basically I need to put a date to each of the items selected.  And the user can select any or all of the items.  I have each date box setup with the code:

     

    visible=If(DataCardValue13_1.Selected.Value="Symptomatic", true, false)

    visible=If(DataCardValue13_1.Selected.Value="Tested Positive", true, false)

    visible=If(DataCardValue13_1.Selected.Value="Close Contact", true, false)

     

    I believe I need a AND OR formula here but not sure how to make it work.

     

    DataCardValue13_1 is the report type data value (multi-select drop down menu).

     

    Thanks!

    PA3.png
    PA2.png
    PA1.png
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Will_Y 

    As I understood is.

    If the Report Type Is blank or Selected only one Value you Need to Display Only First Datepicker.

    SO For First Scenario you can yous like that - 

    If( IsBlank(DataCardValue13_1.Selected) || DataCardValue13_1.Selected.Value="Symptomatic", true, false).

    But if User Select More then One Report Type then you need two another Datepicker else visibility is Hidden for them.

     

    For the Second Scenario, you can use like below.

    visible=If(DataCardValue13_1.Selected.Value="Tested Positive", true, false)
    
    visible=If(DataCardValue13_1.Selected.Value="Close Contact", true, false)

     

  • Will_Y Profile Picture
    46 on at

    When I tried that, the date picker for symptomatic is shown when I select symptomatic, but not shown when I select symptomatic AND tested positive or symptomatic AND close contact. 

  • Vijay Tailor Profile Picture
    2,961 on at
    That the Reason you have to use In condition.

    Please check the below code
    If("Foo" in DataCardValue7.SelectedItems.Value,true,false)
  • Will_Y Profile Picture
    46 on at

    Thank you. I guess I don't understand the condition "Foo" or how to make that work for my scenario.

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at
    This is COndition applicable for your scenario.

    If( IsBlank(DataCardValue13_1.Selected) || "Symptomatic" in DataCardValue13_1.SelectedItems.Value, true, false)

    If("Tested Positive" in DataCardValue13_1.SelectedItems.Value, true, false)

    If("Close Contact" in DataCardValue13_1.SelectedItems.Value, true, false)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This worked for me 🙂 Thank you so much.

  • Will_Y Profile Picture
    46 on at

    I failed to copy over the tested positive and close contact you provided.  It absolutely worked!  Thank you for all your help.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 395

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 287 Super User 2026 Season 1

Last 30 days Overall leaderboard