Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I would like to have rounded corners (4 px) as shown for KPI 3 and KPI 4. I can't get my head around how to implement it.
Here is the code I am working on:
"cardVisual": {
"*": {
"outline": [
{
"$id": "default",
"lineColor": {
"solid": {
"color": "#B3B0AD"
}
},
"show": true,
"roundEdge": 4,
"weight": 1,
"transparency": 0
}
],
"padding": [
{
"top": 0,
"left": 0,
"right": 0,
"bottom": 0
}
],
"spacing": [
{
"$id": "default",
"verticalSpacing": 0
}
],
"fillCustom": [
{
"$id": "default",
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
}
}
],
"shape": [
{
"$id": "default",
"roundEdge": 4,
"rectangleRoundedCurve": 4
}
],
"layout": [
{
"orientation": 2,
"customizePadding": false
}
],
"background": [
{
"show": false
}
],
"label": [
{
"$id": "default",
"fontColor": {
"solid": {
"color": "#0B1128"
}
},
"fontSize": 10,
"horizontalAlignment": "center"
}
],
"value": [
{
"$id": "default",
"fontColor": {
"solid": {
"color": "#0B1128"
}
},
"bold": true,
"italic": false,
"underline": false,
"fontSize": 20,
"horizontalAlignment": "center"
}
],
"border": [
{
"show": false
}
]
}
}
Thanks in advance
Solved! Go to Solution.
Hi @Anonymous
try this:
"cardVisual": {
"*": {
"shapeCustomRectangle": [
{
"$id": "default",
"tileShape": "rectangleRounded",
"rectangleRoundedCurveCustomStyle": true,
"rectangleRoundedCurveLeftTop": 6,
"rectangleRoundedCurveRightTop": 6,
"rectangleRoundedCurveLeftBottom": 6,
"rectangleRoundedCurveRightBottom": 6
}
],
"outline": [
{
"$id": "default",
"lineColor": {
"solid": {
"color": "#B3B0AD"
}
},
"show": true,
"weight": 1
}
],
"border": [
{
"color": {
"solid": {
"color": "#FFFFFF"
}
},
"show": true,
"radius": 4
}
]
}
}
}
The result:
Hi @Anonymous
try this:
"cardVisual": {
"*": {
"shapeCustomRectangle": [
{
"$id": "default",
"tileShape": "rectangleRounded",
"rectangleRoundedCurveCustomStyle": true,
"rectangleRoundedCurveLeftTop": 6,
"rectangleRoundedCurveRightTop": 6,
"rectangleRoundedCurveLeftBottom": 6,
"rectangleRoundedCurveRightBottom": 6
}
],
"outline": [
{
"$id": "default",
"lineColor": {
"solid": {
"color": "#B3B0AD"
}
},
"show": true,
"weight": 1
}
],
"border": [
{
"color": {
"solid": {
"color": "#FFFFFF"
}
},
"show": true,
"radius": 4
}
]
}
}
}
The result:
Thanks, seems the "$id": "default" is necesary for shapeCustomRectangle which is missing from a lot of auto generation tools
@Anonymous
Try
"border": [{
"show": true,
"radius": 4,
"color": { "solid": { "color": "#CCCCCC" } }
}],
regards
Phil
Proud to be a Super User!
This works to make a border on the entire visual, not the cards themselves. But thank you so much.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |