Power Query in Excel - web scraping - powerquery

I am trying to use the Power Query in Excel to scrape information from below website. However, it didn't work well - no text or table return at the end. Can someone please advise? Thank you in advance.
Here are the step that I want to automate:
search the product with code 7515 (here I think I can tweak the url to get step 2)
CIBC structured notes website
click on the product name with the same CBL code
search result about code 7515
the circled one is the info that I want to obtain
desired structured note info

Related

Not finding how to use a search result term in link attributes in oracle apex 22.2 search page

Im using apex 22.2 And with it comes a new feature, the search page, with its search configurations attached, I am implementing this into a project and having trouble using the link function as I would like, the desired result is that after searching for something that comes up in the search configuration it grabs the primary key in this case 'project_ID' and it inputs it into the 'proyect_Id' field in my target page which takes you to the correct page instead of the generic template page with no data. I understand how to do this in any other type of link but with search configurations I can't find any items that bring up what I just searched/selected from the search If anyone knows the way to do this or a workaround that helps my case it'd be much appreciated!
Ive tried browsing the items that i can set as value, using various &PRIMARY_KEY AND &PROJECT_ID type values and setting the value into an item but none of them have worked. i also cant find much info in this
Using &PROJECT_ID. with a dot at the end as the Value in the Link dialog should work to select the selected project.

How to extract a text from a url while conditionally rendering the images using an Arrayformula in Google Sheets?

This formula below does extract the file ID and yields the correct image url. Now, how to fetch the correct url to extract that ID from by verifying a key using VLOOKUP() maybe?
I've seen that REGEXEXTRACT() requires JOIN() and could this be the reason why it doesn't work?
Current formula doesn't populate the rows, but only the one it's sitting in:
=arrayformula(iferror(image("https://drive.google.com/uc?export=view&id="&regexextract(VLOOKUP($F$3:$F$100,$I:$I,2,0),"d/(.+)/view")),""))
Here's a file for tests, if you feel like operating.
Thank you!
Your formula is working! Just change $I:$I with $I:$J.
You need to put the whole range including the column to look at and the column with the results.

Xcode - Displaying variations of using Firebase and Algolia

I've got data in my Algolia index and Firebase Database that are stored as presented in the first image.
enter image description here
There is a parent exercise (in this case "Chest Press") which has two variation factors ("type" and "variation"). When a user searches for an exercise, I would like the data to be presented as shown in the second image.
enter image description here
Is this possible using my current database structure? Any help would be greatly appreciated.
Thanks
I would flatten this out in your index so that each exercise/variation is a unique record. This will aid Algolia indexing and speed up search.

Subtotal and total in Apex Wrapper class with object fields

Link to table
Hi All,
I am trying mimic the behaviour of Report using Apex and Lightning component. I am able to get subtotal and grandtotal result using GROUP BY ROLLUP(). However I cannot query more that 3 field which are not aggregated. I have 8-9 other fields to show along with subtotal and grandtotal of 4 columns.
I have created a map of records which I have to show on page and there is an aggregated query. Could anybody suggest how to get all these in a wrapper class?
I cannot use Report Builder for this because I have to divide the subtotal with a fix value and show below the subtotal.
You should be able to do what you need with report-level formula.
Create a summary or matrix report (I've picked "Case history"), you should see a new option in the sidebar menu (well, might look bit different in Lightning but you get the idea hopefully)
Drop that formula on the report and it should work pretty neat
Leave a comment under my post if you think this doesn't work for you and you still need code. (would be good to edit your post and include a code sample so we get better idea though)

Keep having errors with importxml + xpath

I spend hours trying to fix this but can't find where the issue is.
I try to import data in google spreadsheet using importxml.
Here is the url :
http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098
I'm interested in exctracting email and phone number for exemple. I used chrome inspector to copy the Xpath, and few chrome plugins. I guess the issu is the Xpath. Here is the formula I used in spreadsheet :
=importxml("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098";"/html/body/div[4]/div/div[1]/div[2]/div[1]/div/div/div/div/div[10]/table/tbody/tr[2]/td[2]")
Hope someone can help
Since the data you want is in tables, it might be easier to use importhtml.
The table you want you can get with this:
=IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2)
To get just the phone number add index (row and column of table)
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),3,2)
email is:
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),4,2)

Resources