The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All,
Is that possible to expand 'value' for all the columns at once? I could do it one column by one column (see the expanded second column) but that is too slow.
Thanks in adance,
Jeremy
Solved! Go to Solution.
Hi @JeremyLeee ,
If the execution time of this query takes too long, I might have a quicker solution, but that requires some coding.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
I see in the screenshot above, multiple records in a column. Is there a function or a set that would allow to retrieve all rows records without having to use the “two arrows” button which only expands to create a static set of columns? I’d appreciate the help here. Also, tried a couple of these but stuck at only able to get the record data for the top row:
option 1:
= Table.ExpandRecordColumn(<previous step>, "ColumnName", Table.ColumnNames(Table.FromRecords(Table.Column(<previous step>, "ColumnName"))), Table.ColumnNames(Table.FromRecords(Table.Column(<previous step>, "ColumnName"))))
option 2:
= Table.ExpandRecordColumn(#"<previous step>", "ColumnName", Record.FieldNames(#"<previous step>"[ColumnName]{0}), Record.FieldNames(#"<previous step>"[ColumnName]{0}))
What would the "ColumnName" should refer?
Hi @tsg1225 ,
if my understanding is correct, this should work for you:
Table.ExpandRecordColumn(#"<previous step>", "ColumnName", Record.FieldNames(Record.Combine(#"<previous step>"[ColumnName])))
It expands all record fields existing in one column dynamically.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @JeremyLeee ,
Have you tried with the suggestion of ImkeF ? Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Hi @JeremyLeee ,
Normally, we could use Table.ExpandTableColumn to expand column in Power Query.
However, I'm afraid that we may not expand multiple columns at once with this function.
Hope @ImkeF may have other suggestions for your requirement.
Best Regards,
Cherry
Hi @JeremyLeee ,
If the execution time of this query takes too long, I might have a quicker solution, but that requires some coding.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
User | Count |
---|---|
82 | |
81 | |
37 | |
34 | |
32 |
User | Count |
---|---|
96 | |
79 | |
61 | |
51 | |
51 |