Hide/unhide empty rows button - button

I'm working on a Google Sheet for a crew to create per diems sheet for all of them. It's all automatic based on a start date.
The problem is;
My whole time period is three months. I have crew perhaps travelling only four days. Which means when I export an PDF for accounting they get a lot empty days.
I would really like to have a button to hide/unhide rows with no information in Column E. The problem is that I have no experience with scripts (as my Google search informs me i must have).
I once had a document that had this feature, but I did nok make it and it was Excel, macro I believe.
In my document I have 45 different sheets, all named from 1 to 45. If possible I could have a button for that hides rows in all sheets. If this button could be in a sheet called "Rules" that would be perfect. If no one knows a solution for this, a separate hide/unhide button for each sheet (1-45) would be perfect.
I'm asking a lot here, but hopefully someone that knows script a lot could make it a challenge to make my day.
I look forward for your replies.
In advance, thanks!

Related

Scraping Spotify Top 200 streaming data with R

novice R user here. I'm looking to scrape a large amount of data on daily streaming volumes on songs that are on Spotify's Top 200 charts for a research project I am involved with. Basically, I would like to write a script to scrape all info for tracks in the top 200 on a given day, such as today's chart, and have this done for every day for a number of years, across a number of countries. I used some code from a guide that I followed previously to successfully scrape said data, but it is now not working for me.
I previously followed this guide pretty much word for word. While this originally worked, it now returns an empty tibble. I suspect that the problem may have to do with the fact that Spotify have re-developed their charts site since my last attempt. The site is different in appearance, but importantly the html node names appear to be different as well. My hunch is that this is what is causing the issue.
However, I am not at all sure if this is the case. Would appreciate it greatly if I could have some guidance on what I would need to do differently to achieve my aims, and whether it is indeed still possible to scrape these charts.
Cheers

How to use URLs extracted from a website as data source for another table in Power BI

I have a situation where I need to extract tables from 13 different links, which have the same structure, and then append them into only one table with all the data. This way, at first I extracted the links from a home page by copying the link from the respective hyperlink, and then import the data through the Web connector on Power BI. However, 3 months later, I realized that those links changed every quarter but the link from the homepage where they are listed remain the same.
This way, I did some research and I found out this video on YouTube (https://www.youtube.com/watch?v=oxglJL0VWOI), which explained how I can scrape the links from a website, by building a table with the header of the link as a column and the respective link as another column. This way, I can have the links automatically updated, whenever I refresh the data.
The thing is that I am having issues to figure out how can I use this links to extract the data automatically without having to copy them one by one and then import the data using the Power BI Web connector (Web.BrowserContents). Does anyone can give me a hint of how can I implement this?
Thanks in advance!

Google Form - New Row

I already saw other questions from other users and I still couldnt help myself on this problem.
Im using google form on my job to help my team mates to simulate some jobs and im using forms to make it easier without using the sheet in itself. Im using one page for the form and one page for the calculations based on the replies from that form.
The problem, as you know it, everytime I complete a form it makes a new row, and it doenst go to my calculation page. It jumps ahead 1 row.
Any suggestion on how I can make it block the jumping row?
I apologise if I am not understanding your problem fully, but I think you mean you're trying to add a calculated column in Google Sheets based on responses in Google Forms?
Let's say, for example, on the form there is a question for length and a question for width and you want Sheets to automatically calculate the area by multiplying the values in the Responses sheet.
You can't drag the formula down the column because when a new response is submitted in Google Forms, Google Sheets adds it as a new row, and the formula is not included.
You've done the right thing by having a separate sheet that deals with calculations but you should use an Array Formula that will refer to the whole column of the Responses sheet, and it would need an IF statement to account for the first row, which has the headers.
I think this video explains everything better than I could:
https://www.youtube.com/watch?v=0v-hQ3EecdE

Google Sheet script that changes automatically based on the day?

Basically I created a script in google sheets that was then added to a button so that I could click the button and count the number of calls I make throughout the day. Button is assigned to a specific cell (i.e. A1). Is is possible to re-write the script so that each day the script knows to stay in the same Column (A), but go to the next row (A2) so that I can track my daily calls without having to reassign the script to a specific cell each day?
I am not sure I understand exactly what you are trying to do, but the attached copy of your spreadsheet finds the current date and then runs your code based on the current date when the button is clicked. I hope this is what you want. If not, please explain further.
https://docs.google.com/spreadsheets/d/1L2CAhLcMuyECfx3zrUcRvSGOP0nNpBQRkMg-1JO4kys/edit?usp=sharing

Controlling UI for SSRS ReportViewer for Start and End Date Picking

I've got a situation where I want the user to enter a start date and end date for report data. In addition there should be a drop down which allows the user to choose one of the following:
last 7 days
last 14 days
last 30 days
If the user selects one of these values, the datepickers should adjust there values? I can't quite figure out how to approach this. Anyone have any ideas.
This isn't possible solely from within SSRS. However, you can still achieve your goal with a bit of extra work. Here's a bit of pseudocode to get you going. This technique works and we use it in our organization often.
In SSRS, hide the report parameters
Create a new blank HTML/ASPX page
Using only HTML, create create your own datapickers and custom "last 7 days" dropdown.
Use Javascript/jQuery on the client to handle your custom logic.
Place a "Generate Report" button on the page.
Insert a hidden iFrame on the page
When the user clicks "Generate Report", perform an HTTP POST passing the report parameters in the URL (something like http://server/reportserver?/dir/Report&rs:Command=Render&Parm1=VALUE1&Parm1=VALUE2&Parm1=VALUE3)
Display the report in the iFrame
Your users won't know the difference and this will give you total control over the layout and presentation of your report parameters.
You can do this within in SSRS. Not great but acceptable.
Have the first parameter be a pick list with two choices.
Pick Dates or Last X Days.
Have the next parameter be the start date.
The third parameter is another pick list. It is either a list of dates or a list of numbers depending on the choice they made in the beginning.
Another way would be to have two reports displayed to the user. one with an open date range and one with a predefined pick list of dates. These would be linked reports that call the same underlying report but display different parameters. This is the approach I would take for such a user request.

Resources