Forum Discussion

FabScone75's avatar
FabScone75
Helper I
5 months ago
Solved

Cannot understand sparkline values

Hi all, 

 

I have a matrix, which is reporting on data sources for reports in a tenant. 

We have Data Source, Workspace Name and Report Name in a hierarchy on the rows, and the date on columns (YearMonth).  The value being reported is count of reports (Report count) by creation date. 

 

I am not using calculation groups. I added the sparkline to the report count measure, showing YearMonth on the x-axis. The result is shown below.  The sparkline doesn't correspond to the numbers. And I'm at a loss to explain what it's showing here. 

 

Can anyone shed some light on what the sparkline is showing? I am about to simply remove it because it's not making sense to me. 

  • Hi! This is expected behavior. Matrix sparklines in Power BI are calculated independently of the visible matrix columns. The sparkline evaluates the measure across the full YearMonth axis for the current row context, which is why it may not match the numbers shown in the matrix columns.

    You can validate this by placing the same measure in a simple table by YearMonth. If exact visual alignment is required, you may need to adjust the date filtering or consider removing the sparkline.

    Best Regards!

4 Replies

  • RicardoTraNa's avatar
    RicardoTraNa
    Responsive Resident

    Hi! This is expected behavior. Matrix sparklines in Power BI are calculated independently of the visible matrix columns. The sparkline evaluates the measure across the full YearMonth axis for the current row context, which is why it may not match the numbers shown in the matrix columns.

    You can validate this by placing the same measure in a simple table by YearMonth. If exact visual alignment is required, you may need to adjust the date filtering or consider removing the sparkline.

    Best Regards!

  • v-aatheeque's avatar
    v-aatheeque
    Community Support

    Hi FabScone75 

    Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.

    • v-aatheeque's avatar
      v-aatheeque
      Community Support

      Hi FabScone75 

      Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.