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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mcburn
Helper II
Helper II

Three Grouping Fields in a Category

Hey Community,

 

in the last Week i got a very good visual, but i think i do something wrong with my Code.

I think it isn´t implement like the Developer of the power bi visual tool want it.

 

And since last Friday my Visual do not work. So maybe you can help me make a clean solution for my goal.

 

My Data consists three Grouping Fields: Date, Status and the ID

and two value Data X and Size.

 

My first solution based on a table: 

 

    "dataViewMappings": [
           {
            "table":{
                
                "rows": {
                    "select": [
                        {
                            "for": {"in": "ID"}              
                        },
                        {
                            "for": {"in": "Date"}
                        },
                        {
                            "for": {"in": "Status"}
                        },
                        {
                            "for": { "in": "X"}
                        },
                        {
                            "for": { "in": "Size"}
                        }
                    ]
                }
            }
        }
    ],

But in most examples they use categorical data mapping. But with that kind of mapping i can only set two grouping fields. One for the category and one for the grouping. Each other field are not shown.

 

In the end i need the categorical data mapping for my colorSelector. The colorSelector only work with categorical datasets. So since Friday before Friday my old solution works fine. But i think that is not the way i should do this.

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Mcburn, You could describe conditions for a particular data mapping. If a data role is omitted in the condition, it can have any number of fields. So you can drag multiple fields into each data role.
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Mcburn,

 

I have a similar issue than you, could you post what you've done to resolve your problem ?

 

Thanks in advance 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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