Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good morning everyone.
I have a report with a Slicer Date and a Matrix, in the Matrix I´m using the Date field like a column and one metric in the values:
I would like to see in the matrix the last 5 days using like max date the slicer date, for example, if in the last day in the slicer is 10/09/2020, the matrix should show the days from 06/09/2020 to 10/09/2020. I could do easly using a filter Top N in the matrix, but I can´t do it because in the matrix Im using another TOP N filter and in PowerBI isn´t possible to use more than one TOP N filter in one object, this my TOP N filter that Im using now:
Could you help me? Thanks a lot
Solved! Go to Solution.
Hi @Anonymous
You create a measure for "Count of Total inc" as below with a condition to show last five days
Measure =
IF(
MAX('DATE'[Date]) > CALCULATE( MAX('DATE'[Date]), ALLSELECTED('DATE'[Date])) - 5,
Count(Table[Total Inc])
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Anonymous
You create a measure for "Count of Total inc" as below with a condition to show last five days
Measure =
IF(
MAX('DATE'[Date]) > CALCULATE( MAX('DATE'[Date]), ALLSELECTED('DATE'[Date])) - 5,
Count(Table[Total Inc])
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Using your metric I get the result that I hope, thanks!
@Anonymous , the best way is relative date slicer. If that can work.
Another way is suggested in this video if this can help
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!