- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please use Table.FromRows(...) to create sample data
Hey,
I have to admit something.
Sometimes I read questions, that I will not or can not answer, or not even try to answer, and just for a simple reason.
I do not have the time to create sample data that is shown in a screenshot, or is just vaguely described (with a great risk that I do not fully understand the problem).
This lack of an easy to reproduce example immediately prevents the chance to learn something new by trying to answer the question.
In my opinion, there is no way that easy as to use the Power Query function
Table.FromRows(...)
This function is described here:
https://msdn.microsoft.com/en-us/library/mt260791.aspx
The following line of code
=Table.FromRows({{1, "Bob", "123-4567"} , {2, "Jim", "987-6543"}}, {"CustomerID ", "Name", "Phone"})
creates a table. With two records and the Columns "CustomerID", "Name", "Phone"
You can use this function by
1. Goto "Edit Queries" from the main window in Power BI
2. Create a "New Query" using the context menu in the queries pane and choose "Blank Query"
I my opinion using this method provides the following advantages
- you don't have to share data, you don't want to
- reducing the problem to the minimum level of complexity provides implicit insight in the essence of the problem
- gives me a chance to learn something new by trying to answer the question
- it is just polite
May the power bi with you
Did I answer your question? Mark my post as a solution, this will help others!
Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for sharing valuable information.
Cheers,
P
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Microsoft Fabric Community Conference 2025
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 08-15-2024 01:19 AM | ||
04-12-2024 01:57 AM | |||
07-16-2024 02:24 PM | |||
09-04-2023 10:03 PM | |||
08-02-2023 12:32 AM |
User | Count |
---|---|
127 | |
84 | |
59 | |
59 | |
44 |
User | Count |
---|---|
180 | |
119 | |
82 | |
70 | |
54 |