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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
duggy
Advocate II
Advocate II

Comparing the top 5 days of this month to the top 5 days of this month last year.

Hi,

 

I have a list of the top 5 days this month. I need to compare it to the top 5 days of last year this month. To get the top 5 days of this month is simple, I have a table visual and order by top actvity and then add a filter to restrict to 5. How would I then add last year's top 5 days for this month next to it and then compare the growth between the two?

 

Much appreciated.

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yuta-msft
Community Support
Community Support

@duggy ,

 

You may create a measure using DAX like pattern below:

Last Year Same Month =
TOPN (
    5,
    FILTER (
        Table,
        YEAR ( Table[Date] ) = YEAR ( TODAY () )
            && MONTH ( Table[Date] ) = MONTH ( Table[Date] )
    )
)

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.