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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Power Bi filter not working in Online platform

Hi,
I am trying to put a relative date filter in my dashboard to show data for 1 month when it loads but also having an option to go back and select the desired date.

It is working completely fine in the desktop version that I am looking at only 1-month data but also having able to select any date to show the desired data but once I publish it online, I am able to see the applied date filter (showing 1-month data) but I am not able to select any other dates on that.

Idk why is this happening? It would be great if anyone can help. Thanks!

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, there is more flexibility to create MEASURE formulas and combine them with slicers.
Refer to the following.

Amount =
CALCULATE (
    SUM ( FactInternetSales[SalesAmount] ),
    FILTER (
        ALLEXCEPT ( M_DimDate, M_DimDate[Year] ),
        DATEADD ( M_DimDate[Date], -1, MONTH ) && SELECTEDVALUE ( M_DimDate[Year] )
    )
)

vhenrykmstf_0-1659095129233.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, there is more flexibility to create MEASURE formulas and combine them with slicers.
Refer to the following.

Amount =
CALCULATE (
    SUM ( FactInternetSales[SalesAmount] ),
    FILTER (
        ALLEXCEPT ( M_DimDate, M_DimDate[Year] ),
        DATEADD ( M_DimDate[Date], -1, MONTH ) && SELECTEDVALUE ( M_DimDate[Year] )
    )
)

vhenrykmstf_0-1659095129233.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

amitchandak
Super User
Super User

@Anonymous , You have to build your own logic with the selected date and slicer

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-30/m-p/1284966#M561629

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.