Dynamic comments in Tableau - dynamic

Does anyone know how to create dynamic comments in Tableau, consisting of some metrics (aggregated) from the data, that are refreshed every time the dataset is refreshed?

Related

Display very large data on C1FlexPivotPage

Example of C1FlexPivotPage
I have a very large dataset (4 million rows) which is extracted through a SQL query. I need to show data in a grid, which is part of C1FlexPivotPage, but it takes so long to calculate and display results. This data needs to be custom formatted like pivot tables, filters, and aggregate functions.
So my question is, what is the best practice for speeding up the process of creating these custom reports, such as the Excel pivot table part, which immediately updates the grid view?
Thanks for any advice.

Possible to get dummy data (1 row) for all fields in the GA Schema?

I am working on a data integration project I'm wondering how to get a sample Excel or Google Sheet file with example data for all the GA fields in the current schema:
https://support.google.com/analytics/answer/3437719?hl=en
I just need one row of data to review. Is there any way to get dummy data or test data? Any help or guidance would be greatly appreciated. Maybe something exists somewhere?
GA provides a sample dataset for this. You can check the instructions on how to access it here. You can then query the dataset and download the results.
Keep in mind that GA schema contains RECORDs and REPEATED fields, for example, customDimensions, so you might need to adapt the results so it can be downloaded as a CSV file, to then import it in Excel or Google Sheets.
Finally, there's a BigQuery connector for Excel that you may want to try to visualize the sample dataset in Excel.

SSRS Matrix (pivot) report is very slow

I have a view that quickly returns 28000 rows of data within 3 seconds. However, when I use this view to create SSRS Matrix (pivot) report, it takes almost 2 minutes to run.
More detail about the view:
Gets data from a linked server
Only about 10 columns with date field and amounts (Date field is what I use pivot on in SSRS to get Amount total)
What I have tried so far:
Dumped view into a temp table
Added OPTION (RECOMPILE);
The report is very simple. Without any parameters. This is one of those reports that users can run and do a data dump into excel before importing it into another system.
Any suggestions?
I would look into doing as much of the aggregation as you can on the server, if that's what's taking the time, especially as it sounds like a relatively static report. Give the data to SSRS in a state where it has to do as little work as possible.
If your query then takes up to two minutes to run on SQL Server, you could look into performance tuning, indexing, etc.

(Excel-VBA) Specific data import (on the background) in the active sheet

Would you please help me (total beginner) to prepare a VBA macro that would open a sheet on the background and import specific selection as shown below:
Let's say we have downloaded wordcount analysis (xlsx) like this downloaded from a CAT tool for testing.
Now I would need to add a macro to my main sheet that would read lines starting (Column A) with "All". If "All" then I'd need to record columns of that line (specficilly Columns A - O) in array / hashtable?.
Please take a look at this image that summs it all (better than explaining it for me :-)
Let me know in case you need to know more details.
All tips / suggestions are greatly appreciated.
Many thanks!
My suggestion (I'm a beginner too) would be to use the Macro Recorder. Great tool to learn (example).
start recording
filter for 'ALL'
copy/past the Cells
stop Recording
Then have a look at the recorded code and adjust it :)
Looking at your data and the final layout you are looking for, using a Pivot Table would provide you with all of the flexibility you need.
You can:
filter which data to display
generate calculated values based on data in other columns
choose what order your columns are displayed
dynamically change the layout if you decide you want a different view
From your data, I was able to generate the following Pivot Table in about 15 minutes.
There are several good, simple tutorials on building Pivot Tables. A Google search will turn up plenty.
Things you will need to learn about for your particular problem:
Classic display (I used the classic display to get this particular layout)
Calculated Fields (many of the columns in the pivot table are calculated based on your spec). There is a maximum string length of 255 characters for a field calculation, so you may need to rename some of the columns in the original data set.
Of course, basics of Pivot Tables
Loading new data and updating your pivot table
Good Luck!

SQL Report Builder takes forever with empty report

I have noticed that when I run a report that contains nothing but an execution time field, the report spends a long time loading whenever I have a large embedded dataset from sql. Why is this? The report is not even looking for any data from the dataset, so what is it doing with it? The load time is clearly proportional to the amount of data in the dataset(s). Is there a better way to create datasets? SQL Report Builder seems pretty unusable as is, since some of my datasets contain millions of records.
Report generation involves three stages:
data retrieval
processing
rendering
These stages run sequentially, so during the data retrieval stage Reporting Services does not know how the data will be used in the report and so it will execute the queries for all datasets in the report. The processing stage then takes the results of the dataset queries and applies the report structure, such as tables and grouping, to the data.
This is why your report is executing the dataset query even though the report only contains an execution time field, and is also why it's important to ensure that datasets only return the data required for the report. Minimising the amount of data retrieval is important for good report performance.
Are you sure you don't have any tablix on your report? A tablix has a dataset property and if you run the report with that property set to dataset1 for example, SSRS will execute the query on dataset1