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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ShaneL79
Helper I
Helper I

Slicer Default Stopped Working

Hello Everyone,

 

My slicer has randomly stopped working. I have not updated the file in nearly 6 months.

 

My report is a weekly report. The slicer lists the last day of each report in a drop down. There is also a "Most Recent" which shows the last full report. The code for this is below:

 

Dropdown selection = IF (
    [End of Week]
        = CALCULATE (
            MAX ( Alarms[Alarm Received Date] ),
            FILTER ( ALL ( alarms ), WEEKDAY ( Alarms[Alarm Received Date], 1 ) = 7 )
        ),
    "Most Recent",
    FORMAT ( [End of Week], "yyyy-mm-dd" )
)

 

For example, the slicer on 1/5/2021 should be:

 

1/9/2021

Most Recent

12/26/2020

12/19/2020

12/12/2020

etc...

 

Unfortunately, it is currently showing the following:

 

1/9/2021

1/2/2021

Most Recent

12/19/2020

12/12/2020

etc...

 

It looks like the "Most Recent" field stopped updating once we hit 2021. I can't seem to figure out how or where to fix this. Any idea's what I am missing?

3 REPLIES 3
amitchandak
Super User
Super User

@ShaneL79 , Check what is MAX ( Alarms[Alarm Received Date] ) date you have. I doubt data is not coming properly. That could be the reason. The formula seems fine.  Seem like you are not getting data for 2021 for Alarm Received Date

 

or you table has some missing dates

@amitchandak, the last whole report date was 1/2/2021, but the Alarms[Alarm Received Date] does not have a record on that day since there were no alarms on that day. A day without an alarm is extremely uncommon (maybe 1-2 times a year), so it falling on a date that defines the end date of a report makes sense since it has no way to compare that. I guess I will have to wait until this weekend to see if it updates properly. 

 

Thanks for giving me a place to start looking.

 

parry2k
Super User
Super User

@ShaneL79 share all the measures, what is END OF WEEK measure?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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