The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
86 | |
85 | |
35 | |
35 | |
35 |
User | Count |
---|---|
94 | |
79 | |
63 | |
55 | |
52 |