Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I need to write a measure that calculates total forecast (pallet quantity) for the next three months by item. For example item 10176NCM for the next three months May through July is 7.88 pallets and I need to have a measure calculate this. I would also like to see a total for the year. Below is my data set.
Thanks for your help
| SoldTo | Item | Date | Forecast Pallets |
| 122488 | 10176NCM | 12/1/2024 | 1.25 |
| 999999 | 10176NCM | 12/1/2024 | 1.54 |
| 108695 | 10176NCM | 12/1/2024 | 0.83 |
| 108695 | 10081NCM | 12/1/2024 | 0.05 |
| 122488 | 10081NCM | 12/1/2024 | 0 |
| 108695 | 10176NCM | 11/1/2024 | 0.82 |
| 999999 | 10176NCM | 11/1/2024 | 1.54 |
| 108695 | 10081NCM | 11/1/2024 | 0.18 |
| 122488 | 10176NCM | 11/1/2024 | 1.25 |
| 122488 | 10081NCM | 11/1/2024 | 0 |
| 999999 | 10176NCM | 10/1/2024 | 0.2 |
| 108695 | 10081NCM | 10/1/2024 | 0.34 |
| 122488 | 10081NCM | 10/1/2024 | 0 |
| 108695 | 10081NCM | 9/1/2024 | 0.66 |
| 122488 | 10176NCM | 9/1/2024 | 0.68 |
| 108695 | 10176NCM | 9/1/2024 | 1.1 |
| 122488 | 10176NCM | 8/1/2024 | 0.28 |
| 999999 | 10176NCM | 8/1/2024 | 0.95 |
| 108695 | 10081NCM | 8/1/2024 | 0.35 |
| 108695 | 10176NCM | 8/1/2024 | 0.47 |
| 122488 | 10081NCM | 7/1/2024 | 0 |
| 999999 | 10081NCM | 7/1/2024 | 0.17 |
| 999999 | 10176NCM | 7/1/2024 | 0.83 |
| 108695 | 10081NCM | 7/1/2024 | 0.3 |
| 122488 | 10176NCM | 6/1/2024 | 0.27 |
| 122488 | 10081NCM | 6/1/2024 | 0 |
| 108695 | 10176NCM | 6/1/2024 | 2.43 |
| 999999 | 10176NCM | 6/1/2024 | 0.64 |
| 999999 | 10081NCM | 6/1/2024 | 0.16 |
| 108695 | 10081NCM | 6/1/2024 | 0.79 |
| 999999 | 10176NCM | 5/1/2024 | 2.05 |
| 999999 | 10081NCM | 5/1/2024 | 0.14 |
| 108695 | 10081NCM | 5/1/2024 | 0.34 |
| 122488 | 10176NCM | 5/1/2024 | 0.05 |
| 108695 | 10176NCM | 5/1/2024 | 1.61 |
| 122488 | 10081NCM | 5/1/2024 | 0 |
Solved! Go to Solution.
Hi @GMadd ,
Please create two measures:
Total Forecast Next 3 Months =
CALCULATE(
SUM('Table'[Forecast Pallets]),
DATESBETWEEN(
'Table'[Date],
STARTOFMONTH('Table'[Date]),
DATEADD(STARTOFMONTH('Table'[Date]), 2, MONTH)
),
ALLEXCEPT('Table','Table'[Item])
)
Total Pallets = CALCULATE(
SUM('Table'[Forecast Pallets]),
ALL('Table')
)
The visual effect of the page is as follows:
The pbix file is attached.
If you have any other questions, please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @GMadd ,
Please create two measures:
Total Forecast Next 3 Months =
CALCULATE(
SUM('Table'[Forecast Pallets]),
DATESBETWEEN(
'Table'[Date],
STARTOFMONTH('Table'[Date]),
DATEADD(STARTOFMONTH('Table'[Date]), 2, MONTH)
),
ALLEXCEPT('Table','Table'[Item])
)
Total Pallets = CALCULATE(
SUM('Table'[Forecast Pallets]),
ALL('Table')
)
The visual effect of the page is as follows:
The pbix file is attached.
If you have any other questions, please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |