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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
geochick_ID
Frequent Visitor

Table columns not adding past current date

I am building a table to forecast the end of the month. The Forecasted total Mined is the sum of the previous 2 columns. I am not sure why the daily numbers are showing correctly but the totals and the cumulative do not calculate correctly past the last total tons date.   

 

geochick_ID_0-1663788396145.png

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @geochick_ID ,

 

 

You need to use SUMMARIZE() to create a virtual table in measure. This virtual table should be constructed to look like your table visual.

 

Total =
VAR _s =
    SUMMARIZE (
        'table',
        [date],
        "remaining days", [measure_remaining days],
        "forecast total", [measure_forecast_total]
    )
RETURN
    SUMX ( _s, [forecast total] )

cumulative =
VAR _s =
    SUMMARIZE (
        FILTER ( ALLSELECTED ( 'table' ), [date] <= MAX ( 'table'[date] ) ),
        [date],
        "remaining days", [measure_remaining days],
        "forcaset_cumulative", [measure_cumulative]
    )
RETURN
    SUMX ( _s, [forcaset_cumulative] )

 


Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @geochick_ID ,

 

 

You need to use SUMMARIZE() to create a virtual table in measure. This virtual table should be constructed to look like your table visual.

 

Total =
VAR _s =
    SUMMARIZE (
        'table',
        [date],
        "remaining days", [measure_remaining days],
        "forecast total", [measure_forecast_total]
    )
RETURN
    SUMX ( _s, [forecast total] )

cumulative =
VAR _s =
    SUMMARIZE (
        FILTER ( ALLSELECTED ( 'table' ), [date] <= MAX ( 'table'[date] ) ),
        [date],
        "remaining days", [measure_remaining days],
        "forcaset_cumulative", [measure_cumulative]
    )
RETURN
    SUMX ( _s, [forcaset_cumulative] )

 


Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

chenwu zhu,

 

I tried that and is pulling data from outside the filtered dates and still not calculating the forecasted days.

geochick_ID_0-1664220433890.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.