Forum Discussion

MattiaMaetini's avatar
3 years ago

Difference between two measure: SUM wrong in table

 

Hi all,

I have a problem with some DAX Measure: I have 2 different Measure (Importo_Budget_Corrente and Importo_Budget_Corr_Att).

This is the DAX code:

CALCULATE(
SUM('SCHEDE'[Importo_Report]),
FILTER(SCHEDE, SCHEDE[TipoSpesa] = "Budget Corrente" && SCHEDE[Data Rif] = [Data_AnnoCorrente]
))

 

They work currently well: now I need to create a new measure, where I always programmatically select Importo_Budget_Corr_Att if it contains a valid number (column Bud Ric).

It seems easy 😉 and row by row, values seem right: but as you can easily verify in the screenshot below, sum produced in Total is not right for this new column.

 

Some suggests?

BR, 

 

 

1 Reply