Forum Discussion

omi18's avatar
omi18
Frequent Visitor
7 years ago
Solved

Visualization Summing the Values

Hello Guys,

 

I am importing the data from SQL Server and trying to plot a bar graph. While doing this power bi is showing me different number than the number is present in Data section.

 

Screenshot: https://bushare-my.sharepoint.com/:f:/g/personal/omi18_bu_edu/EhCtZ-nseghPsBgTocB81EIB3P2CblzLqCaHUA-PkeQhBA?e=pcQ0Qt

 

It might be a silly mistake, I am doing. lol

 

Thanks,

  • Hi omi18

     

    Power BI is a aggregation tool.The way around this would be to create an index column in query editor to provide the uniqueness of rows.Then use the index column for legend. For example:

     

    Regards,

    Cherie

     

     

8 Replies

  • Hi omi18,

     

    In your data image you have two filters on your data are those filters also present in the chart you are using? Do you have any categories that make the legend?

     

    Regards,

    MFelix

    • omi18's avatar
      omi18
      Frequent Visitor

      Hello,

       

      No, There is no filter in the visualization. Each Year represents a different question ID. In the screenshot 106 ID belongs to Enroll 2014 Year. And I am Using enroll 2014 as a Value and Legend is blank.

       

      Best,

      Omi

    • omi18's avatar
      omi18
      Frequent Visitor

      Hello MFelix

       

      Hello,

       

      No, There is no filter in the visualization. Each Year represents a different question ID. In the screenshot 106 ID belongs to Enroll 2014 Year. And I am Using enroll 2014 as a Value and Legend is blank.

       

      Best,

      Omi

  • v-cherch-msft's avatar
    v-cherch-msft
    Microsoft Employee

    Hi omi18

     

    This is due to Power BI being a aggregation tool.You may try to add Legend as category.It's better that if you could share some sample data which could reproduce your scenario and your desired output so that we could help further on it.

     

    Regards,

    Cherie