May 6, 2026 at 4:27 am
This week my BI Developer colleague proudly showed me a new Power BI report that he'd vibe-coded. Here's how it works:
I'm fairly new to the data engineering role (transitioned from software dev) but this is insane right? My colleage has very strong SQL skills but isn't really a programmer, so I'm guessing this is a case of 'when all you have is a hammer, everything looks like a nail'.
I don't even know how to begin trying to explain the problems with this approach to my colleague, or what to suggest as an alternative (maybe just make a custom visual using the dev tools provided by PBI?). I don't want to come off sounding condescending but I have to say something before this becomes our standard way of creating custom reports.
May 6, 2026 at 1:16 pm
Lol, that's an expensive use of creating a report and sticking it in a table. Is this a one time thing? IF so, not sure it makes sense to store the data as a variable. This is static.
If this is to be run, then hydrating that HTML instead of refreshing the report from data would likely be a more efficient use of SQL Server resources. re=running the query and chunking the data isn't something SQL Server is good at doing.
The vibe coding thing makes some sense, but maintaining htis, even with LLM help, is a time sink. A better use if a custom visual is needed might be to create one. Or try to re-use existing visuals in a create way.
May 7, 2026 at 1:26 pm
The resulting code was more than the 2 billion bytes that could be stored in a VARCHAR(MAX)...
Whoever it is, they need a little training on the BI and, I'll say, on the SQL Side of the house. I have a presentation where I demonstrate with working code how to reduce 100 Million rows of sales data across 10 years to a "CROSSTAB" (much more capable than a PIVOT") with totals and subtotals 7 different ways from Sunday in 19 MILLI seconds for 2 year and about 270 MILLI seconds for all 10 years using just one query. The total size of the result table (can be loaded into BI) is only 1.4 MEGA bytes.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2026 at 2:37 pm
FileStream?
May 7, 2026 at 3:31 pm
Filestream feels slighlty abandoned by MS, so I wouldn't recommend that. It's supposed, but no work done for a number of versions.
May 7, 2026 at 3:50 pm
Explain that SQL Server is a data repository only. Everything else can be done in PowerBI. PBI can do a multitude of things on the presentation side.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply