Forum Discussion

Cmuglioni's avatar
Cmuglioni
Frequent Visitor
6 years ago
Solved

SUMX returns blank comparing with previous year

Hi everyone,

 

I am relatively new to power Bi and DAX. I am actually working on a financial report in order to show the impact of the change in sales regarding the volume, price and mix of my products.

 

I managed to do it at a global level and now I am struggling with the same report per client. My problem is when I don't have sold the same product this year versus previous year. The SUMX function returns blank in the last column:

 

 

I already tried to change blank cells to 0 but it didn't work. I also tried with ISBLANK, with IF(ISBLANK())... without any adicional results. I think it might come from the fact that in my table "softland_iw_gmovi[Products]" I don´t have, for the current year, these products in my sales database.

 

The SUMX function:

=Sumx(Values(softland_iw_gmovi[Productos]);[PPC N-1]*([Cajas]-[Cajas N-1])-[Efecto Mix N-1])
 
 

Thankful for any tips or insights!

 

 

 

 

 

1 Reply