Forum Discussion

rehansaeed2468's avatar
9 months ago
Solved

Scatter Plot With Month and Product ID

I have a requirement where I am using the Scatter Plot with MOnth Year filed (MMM-YYYY) on X-Axis and Sum Sales on Y Axis. 

My table has Product Id, Date and Sales columns, I would like to show MOnth Year field on XAxis and also would like to see the Bubbles for all the Product IDs during that month.

 

Here is the sample data set I used in the sample PBIX file that can be downloaded at the below location.

 

https://drive.google.com/file/d/1zl3wf7e6lzNluq9djNNI8JabGziO-yBl/view?usp=sharing

 

Product IDOrder DateSales
M11/1/202550
M21/1/202520
M31/10/202530
M41/10/202510
M52/15/20255
M62/15/202560
M72/20/202530

 

 

  • Anonymous's avatar
    Anonymous
    9 months ago

    Hi rehansaeed2468,

     

    In a Power BI scatter chart, this behavior is expected because the visual can split bubbles by either Legend or Details, not both. Since Shop ID is already used in the Legend, all products for the same month and shop get grouped into one bubble. To show separate bubbles for each Product ID in the same month, you must place Product ID in the Details field. Keep Month Year on the X-axis (set to Continuous), Sum of Sales on the Y-axis, Shop ID in Legend, and Product ID in Details. This will create multiple bubbles at the same month one per product colored by shop. This is a built in limitation of the scatter visual in Power BI.

     

    Thanks & Regards,

    Prasanna Kumar

11 Replies

    • rehansaeed2468's avatar
      rehansaeed2468
      Icon for Helper I rankHelper I

      Sorry I missed one more requirement. Each product has a ShoP Id too which is used in the Legend so cant use the Product ID in the Legend. 

  • Simply, you could use ProductID to be used as "Legend" in you Scatter Chart if I understand you correctly.

  • Hi rehansaeed2468 ,

    if I understand you right, your requirements are:

    1. Month Year as x-axis (done?)
    2. Sum of Sales as y-Axis (done?)
    3. Shop Id as Legend (a data point for every Shop by Month Year, do you have some sample data including that Shop Id?, but should be done as well)
    4. But, what exactly do you mean by "I would like to see the Bubbles for all the Product IDs"

    Possible options would be

    1. Use tooltips to show product ID and/or Shop ID
    2. Use colors to identidy Shops or Products
    3. The size of the bubbles is still available as an additional dimension
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi rehansaeed2468,

     

    Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to  rehansaeed2468  and cengizhanarslan for prompt and helpful responses.

    Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.

     

    Best regards,
    Prasanna Kumar

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi rehansaeed2468,

     

    In a Power BI scatter chart, this behavior is expected because the visual can split bubbles by either Legend or Details, not both. Since Shop ID is already used in the Legend, all products for the same month and shop get grouped into one bubble. To show separate bubbles for each Product ID in the same month, you must place Product ID in the Details field. Keep Month Year on the X-axis (set to Continuous), Sum of Sales on the Y-axis, Shop ID in Legend, and Product ID in Details. This will create multiple bubbles at the same month one per product colored by shop. This is a built in limitation of the scatter visual in Power BI.

     

    Thanks & Regards,

    Prasanna Kumar

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi rehansaeed2468,

     

    Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.

     

    Best regards,
    Prasanna Kumar