Forum Discussion

neilp1's avatar
neilp1
Frequent Visitor
8 years ago

"Too many values" calculation is incorrect when adding a legend.

I have a chart that has every mniute of the day along the x axis. This works great in Power BI desktop and the Web.

 

When adding a series that is wholely dependant on the x axis (i.e. daypart against minute of the day - there can only ever be one value), Power BI complians that there are now too many rows, even though the number of rows has not changed, as far as the dataset is concerned, there is only one additional column.

 

In my example below, I have minute of the day coloured by the hour of the day. Every minute can only exist in a single hour of the day, and yet this is produced more rows.

 

6 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi neilp1,

     

    There are too many values indeed though they are blanks. You can see how the legend works from the following picture. 

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    We still can show the data of your visual.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    What would you like to do exactly? Maybe there is better solution.

     

    Best Regards!

    Dale

    • neilp1's avatar
      neilp1
      Frequent Visitor

      I'm not sure I understand. Could you explain exactly how there are too many values? The number of rows is the same!

       

      It sounds like PowerBI is being over protective here - the number of possible rows is higher, but the error is showing even though the number of actual rows is within the allowed limit.

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi neilp1,

         

        Let's go on this example. There are only three rows at the start. But when the Color legend is added in, the rows turn to every Color multiply every year. That's why there are many many records.

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

        Best Regards!

        Dale