The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Hi,
Share some data and also show the expected result.
@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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
80 | |
78 | |
46 | |
39 |
User | Count |
---|---|
143 | |
115 | |
64 | |
64 | |
53 |