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 moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have a table with Measures based on a slicer for transaction date (see screenshot).
I now want to be able to have a seperate table with a week by week comparison of the measures calculated (see below):
In this table though it is only showing me the total of the measure calculated on the current date.
Is there a simple way to do this? I'd also like to add other columns to this table based on other measures to calculate arrears.
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
You may create measures like DAX below.
This week = CALCULATE(SUM(Table[Amount]),FILTER(ALLSELECTED(Table),YEAR(Table[Date])=YEAR(Table[Date])&&WEEKNUM(Table[Date])=WEEKNUM(MAX(Table[Date]))))
Last week = CALCULATE(SUM(Table[Amount]),FILTER(ALLSELECTED(Table),YEAR(Table[Date])=YEAR(Table[Date])&&WEEKNUM(Table[Date])=WEEKNUM(MAX(Table[Date]))-1))
Diff= [This week]- [Last week]
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You may create measures like DAX below.
This week = CALCULATE(SUM(Table[Amount]),FILTER(ALLSELECTED(Table),YEAR(Table[Date])=YEAR(Table[Date])&&WEEKNUM(Table[Date])=WEEKNUM(MAX(Table[Date]))))
Last week = CALCULATE(SUM(Table[Amount]),FILTER(ALLSELECTED(Table),YEAR(Table[Date])=YEAR(Table[Date])&&WEEKNUM(Table[Date])=WEEKNUM(MAX(Table[Date]))-1))
Diff= [This week]- [Last week]
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Refer, if my blog on week vs week can help
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
Appreciate your Kudos.
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |