Forum Discussion

3mi81's avatar
3mi81
Regular Visitor
2 years ago
Solved

Display more "single" data on the same visual object

Hello,
I started a few days ago to work with power bi.
I would like to know if it is possible to display three different values within the same visual object.

I would like to display the minimum, maximum and current value.

If possible, how should I structure the dataRoles and dataViewMappings?

 

 

 

 

{
    "dataRoles": [
        {
            "displayName": "Actual",
            "name": "actual",
            "kind": "Measure"
        },
        {
            "displayName": "Min",
            "name": "min",
            "kind": "Measure"
        },
        {
            "displayName": "Max",
            "name": "max",
            "kind": "Measure"
        }
    ],
    "objects": {
    },
    "dataViewMappings": [
        {
            "conditions": [
                { "actual": { "min": 0 } }
            ],
            "single": {
                "role": "actual"
            }
        }
    ],
    "privileges": []
}

 

 

 

Thanks,

E.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi 3mi81 ,

     

    According to your statement, I suggest you to try "Multi-row card" visual.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi 3mi81 ,

     

    According to your statement, I suggest you to try "Multi-row card" visual.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.