Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
https://www.youtube.com/watch?v=duMSovyosXE
User | Count |
---|---|
127 | |
108 | |
100 | |
63 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |