Forum Discussion

lwmns's avatar
lwmns
Frequent Visitor
2 years ago
Solved

Matrix Showing Wrong Values After Publishing

Hi all,   I have a matrix visual that plots values to a calendar. When in Desktop, these values show correctly and everything lines up with what is on the database. After publishing to the Service,...
  • lwmns's avatar
    lwmns
    2 years ago

    I managed to fix this issue, in case anyone comes across this in the future. The issue looks to be due to some re-ordering that the Power BI Service does with the data. 

     

    I had a table with events and these came with DateFrom and DateTo fields. I created a second table to fill the dates inbetween, so that I could plot them on a matrix showing a calendar. I had created the second table by duplicating the first (including the index from the initial table), which left my second table without a unique index.

     

    Once I added an index to this second table, the data came through as expected. I can only assume that this was due to some optimisation that the Service was doing, that Desktop wasn't.