Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
This is what I would like to replicate in Deneb:
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
Strawberry | 1 | Fruit |
Apple | 2 | Fruit |
Banana | 3 | Fruit |
Cucumber | 4 | Vegetable |
Zuchini | 5 | Vegetable |
Pepper | 6 | Vegetable |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |