Forum Discussion
wrong total
- 3 years ago
Anonymous
Still can be addef to the SUMMARIZE table
Lost_new =SUMX (SUMMARIZE('6_Lost''6_Lost'[StartDate],'6_Lost'[EndDate],'6_Lost'[Product],'6_Lost'[CYname],'Date'[Jahr],
'Date'[Monat]),
sure, here you go:
Anonymous
Still can be addef to the SUMMARIZE table
'Date'[Monat]
- Anonymous3 years agoNot applicable
Oh, wow. I did not suspect that it would make a difference by putting it at the end. It works now.
Thanks so much for your help. Really appreciate it 🙂
- tamerj12 years agoCommunity Champion
Hi anushaghi123
please try
Product_Count rolling average correct total =
SUMX (
SUMMARIZE (
'Table_name',
'Table_name'[dimdate].[Year],
'Table_name'[dimdate].[QuarterNo],
'Table_name'[dimdate].[Quarter],
'Table_name'[dimdate].[MonthNo],
'Table_name'[dimdate].[Month]
),
[Product_Count rolling average]
) - anushaghi1232 years agoHelper II
Hi tamerj1 ,
I have created the quick measure to calculate the moving average with dynamic slicer. But facing column total error for the measure. Like it has to sum Jan to Dec data and show it in the column but column total only taking Dec month data everytime.
Example - Should be Oct+Nov+Dec = 75379+62685+26346 = 164410 But the total showing is 26346.
Please help me with the following issue
I am getting column total error and taking Matrix table
Rows - Country,ProductCategory
Column - Month
I'm getting column total incorrect for Forecast(Blue) data.
Dax Formula (Quick Measure) - Product_Count rolling average =
IF(
ISFILTERED('Table_name'[dimdate]),
ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
VAR __LAST_DATE = ENDOFMONTH('Table_name'[dimdate].[Date])
VAR __DATE_PERIOD =
DATESBETWEEN(
'Table_name'[dimdate].[Date],
STARTOFMONTH(DATEADD(__LAST_DATE, 'Moving Average'[Moving Average Value], MONTH)),
__LAST_DATE
)
RETURN
AVERAGEX(
CALCULATETABLE(
SUMMARIZE(
VALUES('Table_name'),
'Table_name'[dimdate].[Year],
'Table_name'[dimdate].[QuarterNo],
'Table_name'[dimdate].[Quarter],
'Table_name'[dimdate].[MonthNo],
'Table_name'[dimdate].[Month]
),
__DATE_PERIOD
),
CALCULATE(
SUM('Table_name'[Product_Count]),
ALL('Table_name'[dimdate].[Day])
)
)
)Thanks
- anushaghi1232 years agoHelper II
Thanks so much tamerj1 . It is working but now only showing till current month not the forecast data for October month like below.