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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 101 | |
| 39 | |
| 29 | |
| 29 |