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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
upentropy_22
New Contributor

Help creating tabular matrix view in Deneb

I am trying to create this custom gantt chart visual with Deneb. I would like to add a parent column and would like it to replicate the tabular format of a matrix. I am able to create the new column using calculate to create parent subgroups but need help to only show the first value in my parent subgroup in Deneb. Thank you so much for your help in advance!!

 

This is what I current have in Deneb: 

upentropy_22_0-1746026884232.png

This is what I would like to replicate in Deneb: 

 

upentropy_22_1-1746026918408.png

Deneb Code 

 

{
 "data": {"name": "dataset"},
 "spacing": 12,
 "transform": [
 {
 "calculate": "datum['Sort Order'] === 1 || datum['Sort Order'] === 2 || datum['Sort Order'] === 3 ? 'Fruit' : null",
 "as": "Parent1"
},
{
 "calculate": "datum['Sort Order'] === 4 || datum['Sort Order'] === 5 || datum['Sort Order'] === 6 ? 'Vegetables' : null",
 "as": "Parent2"
},
 {
 "calculate": "datum.Parent1 || datum.Parent2",
 "as": "Parent"
 },
 {
 "window": [
  {"op": "first_value", "field": "Parent", "as": "Parent Test"}
],
 "frame": [null, null],
 "groupby": ["Parent"]
 },
 {
 "filter": "datum['Parent Test'] !== null"
 }
],
 "hconcat": [
 {
"mark": {"type": "text"},
"encoding": {
 "y": {
 "field": "Level 2",
 "type": "ordinal",
"axis": null,
 "sort": {
 "field": "Sort Order",
"order": "ascending"
 }
},
"text": {
   "field": "Parent Test"}
 }
 },
 { "mark": {"type": "text"},
 "encoding": {
 "y": {
 "field": "Level 2",
"type": "ordinal",
"axis": null,
 "sort": {
 "field": "Sort Order",
"order": "ascending" }
 },
 "text": {
 "field": "Level 2",
 "type": "nominal"
 }
 } }
]
}

 

my data table since I can't seem to attach a file 

 

Level 2Sort OrderLevel 1

Strawberry1Fruit
Apple2Fruit
Banana3Fruit
Cucumber4Vegetable
Zuchini5Vegetable
Pepper6Vegetable
1 REPLY 1
lbendlin
Esteemed Contributor III

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.

Top Solution Authors
Users online (2,728)