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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.