Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
veroreinah
Regular Visitor

Adding multiple percentile lines to custom visual

Hi everybody,

I'm developing a custom visual and need to replicate part of the behavior of the Percentile line field you can find in the Analytics pane in the Clustered bar chart, for example.

So far, I've updated my capabilities.json file, so the percentile line can be customized in the Analytics Pane, but it only allows me to create one single line, instead of multiple. Does anyone have any idea how to do it?


My percentile line. Once I've added one line, I cannot add more, the "+ Add" button disappears:

veroreinah_0-1653318598516.png

Clustered bar chart Percentile line. I've already added 2 lines, but can add more (the button "+ Add" is visible):

veroreinah_1-1653318627846.png

This is the field definition in capabilities.json:

 

{
    ...
    "objects": {
        ...
        "percentileLine": {
            "displayName": "Percentile line",
            "displayNameKey": "Visual_PercentileLine",
            "objectCategory": 2,
            "properties": {
                "show": {
                    "type": {
                        "bool": true
                    }
                },
                "displayName": {
                    "type": {
                        "text": true
                    }
                },
                "percentile": {
                    "displayName": "Percentile",
                    "displayNameKey": "Visual_Percentile",
                    "type": {
                        "integer": true
                    }
                },
                "color": {
                    "displayName": "Color",
                    "displayNameKey": "Visual_Color",
                    "type": {
                        "fill": {
                            "solid": {
                                "color": true
                            }
                        }
                    }
                }
            }
        }
    }
}

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @veroreinah - as per the documentation, the analytics pane currently doesn't support multiple instances or selectors for custom visuals, so you can currently only have one instance per object. I'm not aware of this being on the teams roadmap currently - these is an issue for some enhancements here though that you might be able to add your requirements on.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @veroreinah - as per the documentation, the analytics pane currently doesn't support multiple instances or selectors for custom visuals, so you can currently only have one instance per object. I'm not aware of this being on the teams roadmap currently - these is an issue for some enhancements here though that you might be able to add your requirements on.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors