This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi!
Im trying to create a comparison between last 2-3 weeks of sales that can be filtered per salesperson. I managed to create a table with the information of just last week, but i would like to get the table or the matrix to update automatically so i dont have to update it manually every meeting. And if possible using a color green/red to mark whenever its going up or down in sells per week vs last week.
My guess is that it would be something using today() - x. Im just very new and i dont know the full structure.
It would be something like this:
| week x | week y | week z | |
| Account1 | $ | $ | $ |
| Account2 | $ | $ | $ |
| Account3 | $ | $ | $ |
Thanks in advance!
Solved! Go to Solution.
In this scenario, I think you can add a flag column to tag Current Week and Last Week.
IsWithin2Weeks =
IF (
YEAR ( Table[Date] ) = YEAR ( TODAY () )
&& WEEKNUM ( Table[Date], 2 ) >= WEEKNUM ( TODAY (), 2 )-1,
1,
0
)
Then put this column into Visual Level, make it "is 1".
Regards,
In this scenario, I think you can add a flag column to tag Current Week and Last Week.
IsWithin2Weeks =
IF (
YEAR ( Table[Date] ) = YEAR ( TODAY () )
&& WEEKNUM ( Table[Date], 2 ) >= WEEKNUM ( TODAY (), 2 )-1,
1,
0
)
Then put this column into Visual Level, make it "is 1".
Regards,
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 55 | |
| 31 | |
| 26 | |
| 23 |