cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Responsive Resident
Responsive Resident

Cascading drop down only if populated in item along with other columns

I have 4 drop downs in a edit form:

 

Matter - Matter_DropDown

Assignment LOB Description - LOB_DropDown

SIC (visible/ required only if Matter = Tax or Matter = Business Advisory Services) -SIC_DropDown

Client Name/ Assignment - Client_CardValue

 

Client Name is a selection that is filtered down by all above it: Matter, Assignment LOB, SIC).

 

How do I write the items so that it only filters for SIC if Matter = Tax or Matter = Business Advisory Services?

 

This is what I have right now:

 

Client_CardValue - Items:

 

Distinct(

  Sort(

    Filter(

      '[dbo].[vps_App_ICWO_HCM_CA_Client]',

      MATT_CAT_CODE_Desc = Matter_DropDown.SelectedText.Result &&

        Assignment_LOB_Desc = LOB_DropDown.Selected.Result), CLIENT_NAME), CLIENT_NAME)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @TesDA ,

Could you please share a bit more about your scenario?

Do you want to add the SIC_Dropdown filter to your current Filter formula only when the Matter = Tax or Matter = Business Advisory Services?

 

Based on the needs that you mentioned, I think the If function could achieve your needs. Please consider take a try with the following workaround:

Set the Items property of the Client_CardValue to following:

Distinct(
         Sort(
               Filter(
                     '[dbo].[vps_App_ICWO_HCM_CA_Client]',
                      MATT_CAT_CODE_Desc = Matter_DropDown.SelectedText.Result,
                      Assignment_LOB_Desc = LOB_DropDown.Selected.Result,
                      If(
                          Matter_DropDown.SelectedText.Result = "Tax" || Matter_DropDown.SelectedText.Result = "Business Advisory Services",
                          SIC_Desc = SIC_DropDown.SelectedText.Result,  // SIC_Desc represenrs the field in your data source, please replace it with actual column name
                          true
                      )
               ), 
               CLIENT_NAME
         ), 
         CLIENT_NAME
)

 

If you want to hide the SIC data card in your Edit form, please try the following workaround:

Set the Visible property of the SIC data card in your Edit form to following:

If(
   Matter_DropDown.SelectedText.Result = "Tax" || Matter_DropDown.SelectedText.Result = "Business Advisory Services",
   true,
   false
)

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @TesDA ,

Could you please share a bit more about your scenario?

Do you want to add the SIC_Dropdown filter to your current Filter formula only when the Matter = Tax or Matter = Business Advisory Services?

 

Based on the needs that you mentioned, I think the If function could achieve your needs. Please consider take a try with the following workaround:

Set the Items property of the Client_CardValue to following:

Distinct(
         Sort(
               Filter(
                     '[dbo].[vps_App_ICWO_HCM_CA_Client]',
                      MATT_CAT_CODE_Desc = Matter_DropDown.SelectedText.Result,
                      Assignment_LOB_Desc = LOB_DropDown.Selected.Result,
                      If(
                          Matter_DropDown.SelectedText.Result = "Tax" || Matter_DropDown.SelectedText.Result = "Business Advisory Services",
                          SIC_Desc = SIC_DropDown.SelectedText.Result,  // SIC_Desc represenrs the field in your data source, please replace it with actual column name
                          true
                      )
               ), 
               CLIENT_NAME
         ), 
         CLIENT_NAME
)

 

If you want to hide the SIC data card in your Edit form, please try the following workaround:

Set the Visible property of the SIC data card in your Edit form to following:

If(
   Matter_DropDown.SelectedText.Result = "Tax" || Matter_DropDown.SelectedText.Result = "Business Advisory Services",
   true,
   false
)

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,145)