Forum Discussion
Total in bar graph and table is wrong
- 4 years ago
Try this measure:
Previous Year = SUMX ( 'Fecha table', CALCULATE ( [Sum Venta], DATEADD ( 'Fecha table'[Date], -1, YEAR ) ) )
Does the 'Fecha' table contain continuous dates covering the whole range of dates in the model?
- Abevann4 years ago
Helper III
Correct, Fecha is continuos and based in the table formula:
Fecha = CALENDAR(MIN(Comercializar[DocDate]), MAX(Comercializar[DocDate]))And choosing the "Show items with no data" option, it shows empty spaces for 1, 2 and so on and so forth...:- PaulDBrown4 years ago
Community Champion
It looks like you are using fields from an automatic date hierarchy. You should be using the fields from the Fecha table (which btw you should mark as the date table if you haven't)
- Abevann4 years ago
Helper III
Hey Paul,
I marked as data table and lost the hierarchy; then I did my own using Fecha as a hierarchy “root”, and manually add year, month, and day, but the results were exact same thing; in the daily view, the day shows the correct amount, and same thing than the table but once I build my own hierarchy and show monthly results, I got the wrong result.
Besides that, even if I don’t use hierarchy, only “Fecha” (marked as date Table), got same wrong result $5,564,885.04 instead of $1,731,496.46: