Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hello,
I'm fairly new to Power query, and I would appreciate some help with my current data.
Context: I have two tables, one called devices with deviceIds and their displayName (which can be "Machine", "Printer 1 & 2", "Printer 3 & 4", "Printer 5 & 6"). The other table, which is connected to it in the model by a one to many relationship, is called data. It has the matching deviceIds, a timestamp, and columns counter0, counter1, and counter2.
Issue: I want to be able to compare the counter data to each other in a new table that includes deviceId and counter (and displayName if that makes life easier for determining which value). I would like all deviceIds with displayName Machine to have counter = counter0 (from data table). For displayNames Printer 1 & 2, Printer 3 & 4, Printer 5 & 6, I want to make two rows for each input from the data table, one with counter = counter1 (for the odd # in the name) and one with counter = counter2 (for the even # in the name).
I don't know if this is even possible, but I thought I would give this a shot. I need to use powerquery and not dax for this because I have other grouping and manipulation to do afterwards. Thanks for your help!
Solved! Go to Solution.
Hi @emmawdmi22
Assume your original tables are like below,
Is this what you want to have in a new table?
You can download the attached pbix at bottom to see detailed steps for the third table. I use Merge queries as new feature to create the new table.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @emmawdmi22
Assume your original tables are like below,
Is this what you want to have in a new table?
You can download the attached pbix at bottom to see detailed steps for the third table. I use Merge queries as new feature to create the new table.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
This works perfectly! Thank you so much for your help!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |