Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Conditional filter in "Power Apps visual for Power BI" when no filter is applied to Power BI

Is it possible to set a default filter in a "Power Apps visual for Power BI" while no other filters are applied in Power BI?

 

Example: Leave the visual showing only today's data, but if any filter is selected in Power BI, the Power BI filter is used and today's filter is not.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, or how your expected outcome looks like, but I tried to create a sample like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

Jihwan_Kim_1-1664130403729.png

 

 

 

Jihwan_Kim_0-1664130390853.png

 

QTY expected result: =
IF (
    ISCROSSFILTERED ( Sales ),
    SUM ( Sales[Quantity] ),
    CALCULATE (
        SUM ( Sales[Quantity] ),
        KEEPFILTERS ( 'Calendar'[Date] = TODAY () )
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I believe I have found a solution. We can send a measure as a column to Power Apps Through Power BI, so we just create a measure that checks if the table has any filters and send it to Power Apps, as the example below shows:

 

Jhey_Frie_0-1664151606909.png

(NOTE: I did the calculation this way because functions like "HASONFILTER" are filtered inside a table using a measure!)

 

After that, just connect the original data source within Power Apps, in this case SharePoint, making a conditional like: if any Power BI filter is active, use it as a database, otherwise, use SharePoint.

 

Jhey_Frie_1-1664152178029.png

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, or how your expected outcome looks like, but I tried to create a sample like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

Jihwan_Kim_1-1664130403729.png

 

 

 

Jihwan_Kim_0-1664130390853.png

 

QTY expected result: =
IF (
    ISCROSSFILTERED ( Sales ),
    SUM ( Sales[Quantity] ),
    CALCULATE (
        SUM ( Sales[Quantity] ),
        KEEPFILTERS ( 'Calendar'[Date] = TODAY () )
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Very good explanation, but it wasn't exactly that, more because I didn't explain it properly, sorry. My real scenario is the following: I have a base of items that are filled daily, in order to generate a good history, so I have a report to display this information. I want to put a Power apps inside the report, so I can fill in the items daily too, the items are generated automatically by a Power Automate flow, so no worries about that. So, I wanted to send the data from Power BI to Power Apps, so that if no other filter is selected in the report, the values ​​returned to Power Apps are only the ones with today's date, if any filter in the report is selected this is no longer valid and the report filter prevails.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors