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 / If filtered table in(P...
Power Apps
Suggested Answer

If filtered table in(PowerBIIntegration.Data) has no selected value, return no items in Power Apps gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

 

I have a gallery in Power Apps with 'Items' field which return an Excel/Power BI table:

 

Filter(DependenciesSE_Step2,DependenciesStep2 in(PowerBIIntegration.Data).DependenciesStep2)

 

 

I have a multi-selections slicer in Power BI for that table and when the users filters values their are reflected in the Power Apps gallery (working fine).

 

BUT, if the users hasn't selected anything in the Power BI slicer, the Power Apps gallery will return all values from the table by default until a value is selected in Power BI/Apps. It's invalidating my calculations in the app since I'm looking for user inputs (filtered value only)

 

Is there a way for the Power Apps gallery to only show selected values and return none if none are selected?

 

I really need help with this, been investigating this for days! 😩

 

Thanks.

 

Alex.

 

 

 

 

 

I want the gallery to filter only the selected values in Power BI (which is working fine), but 

Categories:
I have the same question (1)
  • Ronak83garg Profile Picture
    117 on at
    I am also facing the same issue. Has there been any solution to this ?
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,205 Super User 2026 Season 1 on at
    Hi ,
    You can try this formula 
    With(
        {
            SelectedRows: Filter(
                DependenciesSE_Step2,
                DependenciesStep2 in PowerBIIntegration.Data.DependenciesStep2
            )
        },
        If(
            // If the filtered result has the same row count as the full table.
            // treat it as "no selection in slicer"
            CountRows(SelectedRows) = CountRows(DependenciesSE_Step2),
            // Return an empty table with the same schema
            Filter(DependenciesSE_Step2, false),
            // Otherwise show only the filtered rows
            SelectedRows
        )
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard