Forum Discussion
total column calculation measure
Hi Community,
i have a problem with calculation total on this measure.
0-6mesi =
I use this formulas
Ageing mese (Measure)= (DATEDIFF([Data ultimo movimento];[Data ultimo acquisto];MONTH))+ DATEDIFF([Data ultimo acquisto];"27/03/2020";MONTH)
For Grand total you need to correct row context. Try Like
sumx(summarize(Table, Table[Cort Art], "_0_6mesi",[0-6mesi]),[_0_6mesi])
Add group by as per need.
2 Replies
- amitchandak
Super User
For Grand total you need to correct row context. Try Like
sumx(summarize(Table, Table[Cort Art], "_0_6mesi",[0-6mesi]),[_0_6mesi])
Add group by as per need.
- v-gizhi-msft
Community Support
Hi,
Please try measure like this:
0-6mesi = SUMX ( GROUPBY ( 'Table'; 'Table'[Cod Art]; 'Table'[Desc Cat merc]; 'Table'[Desc Cat Omo] ); IF ( [Ageing mese] >= 0 && [Ageing mese] <= 6; IF ( ISFILTERED ( MA_ItemsFiscalData[Item] ); [Costo Medio FIX totale]; [Costo Medio FIX totale] ) ) )Remember to replace the 'table' with your table name.
Hope this helps.
If you still have any issue, please share some sample data(original data excluding measures) and tables' relationships(linked columns) as a screenshot.
Expect your reply!
Best Regards,
Giotto Zhi