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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
mophi
Frequent Visitor

Custom Visual Adding a raw singular column without categorising the values

Hello,
im trying to create my own custom visual histogram but i'm having some trouble when importing my data points into the visual.
When choosing my dataroles in the capabilities.json there are the options to map the data by categories, single, table etc but all of these require a grouping category. What i need though is only to get only a single column of data points into my visual without any summarizing of any of the points. Just the raw column.
I haven't found anything to this regard yet so your help would be greatly appreciated.
Thank you

2 REPLIES 2
JanRak
Helper I
Helper I

Hi
Not sure if I understand correctly, but I think the following creates a field where you can drag a single column into, and it binds the data.

Here's a decent tutorial:
https://github.com/ABKimmel/Power-BI-Visualization-Development-Tutorial/blob/master/docs/capabilitie...

{
    "dataRoles": [
        {
            "displayName": "Field Name",
            "name": "fieldInternalName",
            "kind": "Grouping"
        }
    ],
    
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "select": [
                        { "bind": { "to": "fieldInternalName" } }
                    ]
                }
            },
            "conditions": [
                {
                    "fieldInternalName": {
                        "max": 1
                    }
                }
            ]
        }
    ]
}

 

mophi
Frequent Visitor

Almost, this does allow me to get only one column of data points. But for example if i have a column like this:

mophi_0-1707212796544.png

it still puts the 0.02 into one bucket:

mophi_1-1707212861027.png

But i would like to have them as seperate values.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.