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 good day,
I need some help on my calculated column. I want the sum of forecast of each week for both area.
Week1 = North forecast + SouthEast forecast
Week2 = North forecast + SouthEast forecast
Desired Output
Thank you
Solved! Go to Solution.
Hi @AllanBerces ,
You can achieve the desired output by creating a new calculated column with this DAX:
OverallForecast =
VAR CurrentWeek = 'Table'[Week No.]
RETURN
CALCULATE(
SUM('Table'[Forecast]),
ALLEXCEPT('Table', 'Table'[Week No.])
)
Your output will look like this:
Hi @AllanBerces ,
You can do this on two different ways in Power Query and in DAX.
Power Query:
DAX:
OverallForecastDAX =
CALCULATE(
SUM('Table'[Forecast]),
'Table'[Week] = EARLIEST('Table'[Week]),
REMOVEFILTERS(
'Table'[Area],
'Table'[Forecast]
)
)
Please see attach PBIX file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @AllanBerces ,
You can achieve the desired output by creating a new calculated column with this DAX:
OverallForecast =
VAR CurrentWeek = 'Table'[Week No.]
RETURN
CALCULATE(
SUM('Table'[Forecast]),
ALLEXCEPT('Table', 'Table'[Week No.])
)
Your output will look like this:
Hi @Bibiano_Geraldo @MFelix Thank you very much for the reply, working perfectly
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 |
|---|---|
| 36 | |
| 33 | |
| 26 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 49 | |
| 32 | |
| 27 | |
| 22 |