Forum Discussion
Opposite Intersection
Hi Anonymous
I tried to use your code to create a new query with my file but it gave me an error.
Here is the screenshot of the error. Maybe it might help you understand where am I going wrong here.
I am not really familiar to the advanced editor in the query.
So if you could please modify your code according to my file, that way I should be able to get a better understanding of your code and how it works.
Here is the link to the file in my one drive.
https://1drv.ms/x/s!Ap0qSKP-4qpThBkZj5kXIu1RAoSJ
And my apologies for the late response.
Thank you,
Vishesh Jain
HI mail2vjj,
Maybe you can take a look at below sample, I modify the formula to use sheet result as reference.(you need to go to query editor and relocate your excel file)
Regards,
Xiaoxin Sheng
- mail2vjj8 years agoHelper III
Anonymous
Thank you for replying.
I was going over your solution and saw some steps like 'Grouped Rows' and you added a custom column as well.
I wanted to know if these steps are readily available in Power BI or did you have to write a custom code for it.
I am trying to fix your solution into my actual file but for some reason it is not working, even after I changed the 'Source' in the first line of your code to my existing table.
I'll let you know as soon as I a figure that out.
Thank you again for all your help.
Vishesh Jain
- mail2vjj8 years agoHelper III
Hi Anonymous
Your solution works!
I had to make a couple of tweaks to it, like change the name of file in the code and add the name of the columns.
The biggest change I had to make, though I didn't really understand why, was to move the 'Date' and 'Name' columns to the beginning of the table.
After that your solution worked but only for a table that already exists. I tried to use it with an Appended Table and it gave me an error.
However, after everything it is working now.
If you could please post your solution with the zip file again and mention the tweaks that I made, then it would help other people in the future.
Thank you so much for your help.
Vishesh Jain