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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hdemedici100
New Member

How to dynamically filter visuals by month minus one

I've been having a look at this forum, and there are lots of similar questions on this topic, but I couldn't find any which are specific to my requirements.

 

I have the below visuals on my report, these are currently filtered by the 'Period' slicer on the top left. For the first row, this is exactly how I want it to behave. But for the second row, I want to be able to see the previous month's data dynamically. I.e currently the top row is showing February, but I want the second row to automatically show January.

20240415 200116.png

Any suggestions would be welcome - thanks in advanced.

1 REPLY 1
sergej_og
Super User
Super User

If I catched it right you will need a measure which calculates the measure used in your second row -1 Month.
Stg like this:

CALCULATE(
                [Sales Amount],
                DATEADD('Date'[Date], -1, MONTH)
)
Just an idea. Try out.

Regards

Helpful resources

Announcements
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.