Create excel with multiple worksheet using azure logic app - azure

Hi I have 5 different set of queries which i want to run in the logic app periodically. It will be better if i create only one excel and add the query result as 5 different worksheet with different name in the logic app for easy access of data.
Is there any possibility to do that.Any link for the above scenario is appreciated.

To create a new worksheet, you can use "Create Worksheet". To add the data will require to create a table first
you may need to count the rows and columns for the dataset you want to save and translate into a "table range"
Good example here: https://devblog.pekspro.com/posts/creating-excel-files-in-logic-apps

Related

Is there an Excel function that can create a dynamic and tiered table based off of the number of inputs for each tier?

I am looking for assistance on this project of mine. I want to be able to create a dynamic table that can be update based on the number of inputs.
The goal is to create a fully built out table that follows the tier structure. I have attached an example of what I am trying to do with the inputs above and intended output below and I want the table to be updated if I were to add a new selection to each tier e.g. D to tier 1 or 3 to tier 2
Example of input and output desired
I have had to map this manually previously which is time consuming and error prone so I am looking for a way to do this automatically. Thank you in advance for any help provided :)
Separate your tier values into three separate tables. In the image below I have created three tables - tier1, tier2 and tier3. In each table, there is one column called "values" containing the values for that tier.
For each table, create a query using Data>Get & Transform Data>From Table/Range.
You should then have three queries in the Power Query Editor, like this:
In the Power Query Editor, select the "tier1" query, then use Add Column>Custom Column and configure it like this:
When you hit OK, you will see this:
Hit the double-headed arrow at the top of the new column then hit OK on the dialog to expand the column. You'll see this at the end:
Repeat the above steps for adding a column for tier3, so at the end you have this:
You can now right-click any of the columns and use 'Rename' to rename them as you want.
Finally, click 'Close & Load' to put the result back to the workbook.
Now, you only need to put your tier values into the three tables, then right-click the final query and select 'Refresh' to run the steps again.

Is there a way to combine similar data in sheets automatically and have Tableau connect to read data

I have 4 Sheets sheets with similar fields. I intend to merge these sheets together to create a master file that has all information in one sheet. However, i need Tableau to connect to the final merged file so i can create dashboards off. This works locally as i have an access program that appends the tables together and creates a new table which Tableau connects to.
The main issue is i am trying to take this process offline (to run online to locally), meaning i need a database that can;
1- Drop content of the tables, pick up the sheets from a specified folder, import them into specified tables.
2- Append new tables into master tables.
All of this should be done automatically at a scheduled time.
I tried using SQL server (SQL Agent for scheduling job import/append etc) for this requirement but i need to know if something else is out there that can serve this purpose efficiently.
Thank you
As long as the sheets have the exact fields, you should be able to use Tableau's Union feature. This feature will allow you to do a wildcard search for sheets within a folder structure. Anytime the data is refreshed in Tableau it will reach back out to the folder and update/union what is currently there.

Can we store a database in firebase, make changes and retrieve?

I have a data set in excel and I want to store it in a Firebase. I have to make changes in it like adding some columns using website and retrieve the values for the changes.
How to proceed?
If I understand your problem, You want sync your excel changes to firebase.If so,then take your data on spread sheet from excel file
you can go with Google Spread Sheets and Zapier
What you need,
1.Zapier Account
2.Google Acount
On Zapier account,make a Zap which will get data from your Spread Sheet and instert it at specified locaion on firebase
Example
Once you have setup then it will automatically insert your sheet data to firebase. But note one thing,setup your Zap first before taking your data to spread sheet from excel beacuase Zapier will not check for existing rows.It always start checking rows after you have setup Zap

Loading Multiple Sheets in QlikView

I have been working on creating a QlikView dashboard for my senior management to use, the current build uses a simple AccessDB back-end to source all tables loaded into the dashboard. However, due to our system limitations, if we'd like to host the dashboard on our intranet the back-end has to be switched to Excel.
Instead of creating multiple Excel files to load them up separately, I was thinking of connecting all my tables directly into Excel with multiple sheets representing multiple tables. By default when you load Excel into QV it only reads the first sheet, is there a way to get it to read all sheets in that Excel file?
Let me know your thoughts.
Regards,
Yasir
I saw the solution to this a few days ago. But I am not sure where is the post anymore or whether it works. Regardless, here is what I remember:
Here is the usual one:
(biff, no labels, table is [Table$])
But if you want to load all sheets,
(biff, no labels)
^In order to do this, make sure all sheets are in the same format/ table.
you need to set vFileName, vStartIndex, vEndIndex
// create a dummy table. it will be used in first concatenation
Excel:
Load * Inline
[DummyFiled];
// loop all your sheets and build Excel table
FOR index = vStartIndex TO vEndIndex
concatenate(Excel)
LOAD
*
FROM [$(vFileName).xlsx]
(ooxml, embedded labels, table is [Page $(index)]);
NEXT index;

Import a single Excel cell into SSIS

Am trying to import a number of metric values from an Excel file into SSIS.
I have named each of the cells with data and was hoping to be able to configure a Connection, that would be updated in a ForEach container, to point to each Named Range in turn, in order to bring over the data one value at a time.
I see many articles on how to connect to a Sheet or Table in Excel, but none to a Named Range? I saw one article on how to bring over one single cell, but that cell was a part of a table.
Can I setup a Connection in SSIS to a single cell, Named or otherwise, and bring back that value?
JK
I can see you implementing this in one of two ways. The first is just a straight Execute SQL Task that returns a single row. The other being a data flow with, probably a script task as your source.
With each pass through your loop, you'd probably need to modify the Excel connection manager and/or your query string to point to the correct named range
In the section To create a linked server against an Excel spreadsheet
To access data from an Excel spreadsheet, associate a range of cells
with a name. A named range can be accessed by using the name of the
range as the table name. The following query can be used to access a
named range called SalesData using the linked server set up in the
previous example.
This article also describes programmatically access Excel via C#, albeit from ASP.NET but the principal should be the same. My hazy recollection is that the worksheet name would have a $ appended to it, thus sheet1$ while accessing the named range would be without the $.
One thing we ran into with our implementation was our servers did not have the appropriate drivers on them and it required us to install the Access engine
Lots of generalities in this answer so if you run into specifics, feel free to ping me.
Take a look at the top two answers from this question:
Want to insert excel file data into table using ssis - format problem
which explains 2 different approaches to doing what you ask.
Here is how to do it http://www.mssqltips.com/sqlservertip/1930/use-ssis-to-import-one-cell-of-an-excel-file-into-sql-server/#comments.
Unfortunately it didn't help me because i want to set a single variable with the values and use it later on.

Resources