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
Hi
I cannot get the correct sum when trying to sum a group of values where I want to collect the ones that have been updated most recently by week.
I have created a filter saying Date = Max(Date), so that when I select a week, I want to sum the newest data for that period.
balance_USD = CALCULATE(
SUMX(factTable; 'factTable'[amount_USD]);
FILTER(factTable; factTable[dataSource] = "BANK");
FILTER(cal_Reported; cal_Reported[Date] = [maxDate_Reported]) )
I have two dates for the week I am running, and it sums both...
Anyone who can see what I am doing wrong?
Br Espen
Solved! Go to Solution.
Seems that I have fixed the issue, still not quite sure how...
I changed the MAX(Date) variable, adding a ALLSELECTED filter to it:
maxDate_Reported = CALCULATE(
MAX(factTable[date_reported]);
FILTER(ALLSELECTED(factTable);
factTable[dataSource] = "BANK"))
Seems that I have fixed the issue, still not quite sure how...
I changed the MAX(Date) variable, adding a ALLSELECTED filter to it:
maxDate_Reported = CALCULATE(
MAX(factTable[date_reported]);
FILTER(ALLSELECTED(factTable);
factTable[dataSource] = "BANK"))
Hi @jaco1951,
Glad to hear that you have resolved by yourself.
Regards,
Yuliana Gu
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 |
|---|---|
| 62 | |
| 54 | |
| 40 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 94 | |
| 83 | |
| 33 | |
| 32 | |
| 24 |