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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.