This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello everyone,
I'm having a bit of trouble formulating the right dax measure. I have created a matrix table, that will show data based on a week ending date selected. And within the matrix table, I want to have columns that will show previous week's values.
I have used the dax measure below, but I get a column with totals, instead of the total by Branch Type. The total value is correct, I just need the column to show the right values by branch type.
Thank you!
Solved! Go to Solution.
@cyncyn_98
Please try it this way:
Prev Hours =
VAR __WEEKID =
MAX ( 'Branch Flash Report'[WeekID] )
RETURN
CALCULATE (
SUM ( 'Branch Flash Report'[TempHrs] ),
'Branch Flash Report'[WeekID] = __WEEKID - 1,
REMOVEFILTERS ( 'Branch Flash Report'[WeekID] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@cyncyn_98
Please try it this way:
Prev Hours =
VAR __WEEKID =
MAX ( 'Branch Flash Report'[WeekID] )
RETURN
CALCULATE (
SUM ( 'Branch Flash Report'[TempHrs] ),
'Branch Flash Report'[WeekID] = __WEEKID - 1,
REMOVEFILTERS ( 'Branch Flash Report'[WeekID] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the May 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 |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 19 |