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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 44 | |
| 40 | |
| 33 | |
| 31 | |
| 23 |
| User | Count |
|---|---|
| 127 | |
| 116 | |
| 90 | |
| 73 | |
| 69 |