Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I am having a problem that may have a simple answer but I can't find it in the forums.
I am running a Monte Carlo python script in power query that creates multiple panda dataframes.
The results is that you see multiple tables which you can expand individually and they have the correct results.
I would like to expand all of the tables seperately as they have different formats and I am not sure how to achieve this. The results would be up to 5 seperate tables (dataset, df1, df2, df3, df4).
I can not run the same query multiple times and expand a different table each time as monte carlo is based on random data so each time you run it you get fifferent answers and the tables are related to each other.
I can not expand all into one flat file as they have different schemas.
Any suggestions would be appreciated.
Solved! Go to Solution.
@Anonymous , you might simply create new queries referencing this query (assume the name is "py tables"). For instance, expanding the table in line with "dataset" is
= #"py tables"[Value]{0}then #"py tables"[Value]{1}, ...{2}, ...{3}, etc.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@Anonymous , you might simply create new queries referencing this query (assume the name is "py tables"). For instance, expanding the table in line with "dataset" is
= #"py tables"[Value]{0}then #"py tables"[Value]{1}, ...{2}, ...{3}, etc.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks. That fixed it 👍
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 4 |