The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a report I am trying to put together that is taking a source of data from SQL and transposing it. The problem I am having is that the dataflow is expecting a certain number of columns to be present, but this report will vary it might be 300 columns one month and 200 the next and 500 the month after that.
How can I write a mscript to be flexiable in this manner?
Here is my script, all the explicitly named columns are guaranteed to
Thanks for the response, but that's not the solution. With a reduced column count a refresh will fail. If I open the dataflow in the editor it will run through all the steps with no issue. I can then close and click refresh and it works. I took everything from (including) transpose down and put it into excel and it will dynamically resize without looking for columns that existed during the initial compile. So it's a dataflow/dataset issue. I haven't tired the dataflowgen2 to see if that makes a difference, I was having issues with the untyped columns but now that I might have a waya round that I'll try again.
Edit:
Dataflow Gen2 doesn't work either, all cloud sourced solutions build some sort of static schema and don't grow or shrink with the dataset column wise. Excel works
Hi,
Please check your applied steps one by one .Instead of removing the columns you can try to filter/select the columns which are required for you.