Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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

Reply
GMadd
Helper I
Helper I

Total for Next Three Months by Item Forecast

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

SoldToItemDateForecast Pallets
12248810176NCM12/1/20241.25
99999910176NCM12/1/20241.54
10869510176NCM12/1/20240.83
10869510081NCM12/1/20240.05
12248810081NCM12/1/20240
10869510176NCM11/1/20240.82
99999910176NCM11/1/20241.54
10869510081NCM11/1/20240.18
12248810176NCM11/1/20241.25
12248810081NCM11/1/20240
99999910176NCM10/1/20240.2
10869510081NCM10/1/20240.34
12248810081NCM10/1/20240
10869510081NCM9/1/20240.66
12248810176NCM9/1/20240.68
10869510176NCM9/1/20241.1
12248810176NCM8/1/20240.28
99999910176NCM8/1/20240.95
10869510081NCM8/1/20240.35
10869510176NCM8/1/20240.47
12248810081NCM7/1/20240
99999910081NCM7/1/20240.17
99999910176NCM7/1/20240.83
10869510081NCM7/1/20240.3
12248810176NCM6/1/20240.27
12248810081NCM6/1/20240
10869510176NCM6/1/20242.43
99999910176NCM6/1/20240.64
99999910081NCM6/1/20240.16
10869510081NCM6/1/20240.79
99999910176NCM5/1/20242.05
99999910081NCM5/1/20240.14
10869510081NCM5/1/20240.34
12248810176NCM5/1/20240.05
10869510176NCM5/1/20241.61
12248810081NCM5/1/20240
1 ACCEPTED SOLUTION
Anonymous
Not applicable

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:

vhuijieymsft_0-1716950174010.png

 

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!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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:

vhuijieymsft_0-1716950174010.png

 

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!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.