cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PaulBI
Level: Powered On

Further Filters Selections in a Combo Box who's source is PowerBIIntegration.Data

I'm trying to filter what can be selected in a combo box whose source is a PowerBIIntegration.Data.  I've been successful in bring in the Power BI Column of Machine Code and break it down to just Distinct values.  I am unsuccessful in doing that and applying a filter from the Powerapps Page (Department_1) to the Power BI column (Dept) to filter the distinct values for a Combo Box source.

Original Successful Items: Distinct(PowerBIIntegration.Data,'Machine Code')

Version I'm working on Items: Filter(Distinct(PowerBIIntegration.Data,'Machine Code'),Department_1.Text in PowerBIIntegration.Data.Dept)

I appreciate any help anyone can give.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Further Filters Selections in a Combo Box who's source is PowerBIIntegration.Data

I think all you need to do is filter the data first then use the distinct.

 

Example: 

Distinct(Filter(PowerBIIntegration.Data, Department_1.Text in Data.Dept),'Machine Code')



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
2 REPLIES 2
RezaDorrani
Level 10

Re: Further Filters Selections in a Combo Box who's source is PowerBIIntegration.Data

Hi @PaulBI 

 

Distinct always returns a collection with only 1 column called Result

 

Distinct(PowerBIIntegration.Data,'Machine Code')

will return a collection with column Result that will contain all your distinct machine codes

 

You will need to update your query accrodingly

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Super User
Super User

Re: Further Filters Selections in a Combo Box who's source is PowerBIIntegration.Data

I think all you need to do is filter the data first then use the distinct.

 

Example: 

Distinct(Filter(PowerBIIntegration.Data, Department_1.Text in Data.Dept),'Machine Code')



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 281 members 4,641 guests
Please welcome our newest community members: