Data not showing on Tableau worksheet at all - data-science

I am very new to Tableau, and am following a very simple tutorial, but am having trouble with even the first step.
I have imported an excel spreadsheet to Tableau, where it has auto-sorted the dimensions and measures.
It allows me to put one of the 'region' dimensions to the sheet, but not a SUM(Units)
https://imgur.com/a/GGqrbtc <- example video

You could have resized your viz accidentally.
To undo this. At the Menu Bar, Go to Worksheet -> Clear -> Manual Sizing

Related

Web Scrape Daily Treasury Rates

I have tried to write some VBA that scrapes a table from the URL below. I would like to create a macro that pulls in the data on a daily basis. Any help is much appreciated. Thank you
https://home.treasury.gov/resource-center/data-chart-center/interest-rates/TextView?type=daily_treasury_yield_curve&field_tdr_date_value_month=202212
I am having problems understanding HTML and the elements function.
I know you want to scrape that table on the treasury page, but it just has daily values of rates for each maturity duration (2yr, 5yr, etc.). These same rates are published every day in their XML feed.
The XML feed is meant to be consumed and parsed by computer code, while the HTML on that page is NOT meant to be parsed by "screen-scrapers".
If your macro pulled in the data from their XML feed every day instead, and you kept a table/log/whatever of each day's rates, after two weeks, you'd have the exact same data as the treasury HTML table, but NOT have all the headaches of trying to parse HTML and always worrying about your code breaking if their HTML layout changes.
Would this later approach work for you?
Update: Eric Salazar's answer reminded me of something. I don't know if you're using Excel VBA, or some other Office app, but if you ARE using Excel, you can use the "'Data Menu'->Get Data->From Other Sources->From Web" feature to import that treasury table into an Excel table. Simply copy the URL of that page, paste it into the URL field of the first dialog that pops up (keep type as "Basic"), click OK, click "Table 0" under Display Options of the next ("Navigator") dialog, and lastly click "Load". By default it will create a table in the current worksheet at the currently selected cell. It will contain all the columns of what's on the treasury page and a few more columns that will be filled with "N/A" (not sure where Excel is getting the N/A field names from). You can get rid of those fields by going into the Power Query Designer before importing the data (instead of clicking "Load" in the previous "Navigator" dialog, click "Transform Data" instead. This will open up the "Power Query Editor" and you'll see a table editor in the main window. Select the column headers you don't want to end up in the table and hit the "Del" key (or right-click and choose "Remove Columns"). The selected columns will now be gone. Now click "Close and Load" in the upper-left corner of the Power Query Editor window.
And like magic, Excel will create a new table on your current worksheet with the data contained on that treasury page. You can then access the table with regular VBA code to refresh and read the values.

Saving Charts with Multiple Series in Excel and PowerPoint

Context
I'm trying to create a multi-series chart/infograph to display total number of sales for the day as compared to the average. The chart consists of three series:
Series 1: The base bar graph showing the number of each item sold
Series 2: A scatterplot to overlay the icons for each item on the appropriate
bar
Series 3: Another scatterplot to overlay the average number of each of the items sold/day
The data is pulled from a SQL server and is automatically refreshed every 5 minutes using Excel's data connections properties.
I have a display in the office that has a PowerPoint running, showing various office events, etc. that I'd like to add this graph to. Typically I would just copy/paste into a slide in the presentation, maintain links, and call it a day. But therein lies the problem...
Issue
When I copy/paste into PowerPoint, only the first series is copied over for some reason. No worries, I thought, I'll just recreate the other two series in PowerPoint directly, linking to the data in Excel. This works until either file is saved/closed. Upon reopening, only the first series remains. For the Excel file, this happens for .xlsx, .xlsm, and .xlsb file types. How can I get charts with multiple series to save properly? Is it more feasible to use code to create the additional series upon opening?
Photos
Desired Result:
After saving/reopening:
Note: I am using Excel 2016 and PowerPoint 2016. Chart similar to what is described in this video: https://www.youtube.com/watch?v=8g9DK5noi1s&t=710s. Tables for series 2 and 3 are in separate tabs due to how the query pulls into Excel. They are the same structure as the table shown, just different values.

Qlikview Fast Change option is not working

I have created one QV report in which i have added one chart which shows result data.
In that chart properties i have tick fast change allowed type as: Pivot table and Straight table.
My QV desktop version is 12. While selecting one dimension and one measure and click on change the type,at that time it is not working.
I have created my another report in QV version 11 and fast change is working proper over there. Is this the issue of versioning?Or else some property issue?
After clicking on the red highlighted symbol, it still keeps as it is and does not converting to pivot data.
Straight Table:
Pivot Table:
Also below is the Screenshot of the report which i have created in QV version 11. For one dimension and measure,while click on fast change option, it is converting to pivot table as per below:
Can anyone help me out please?
I have already tried by deleting my existing chart and created another new chart with same properties but it is also not working for the new one.
Click on the title of the dimesion and drag it up and to the right. your cursor should go off of the object without releasing the mouse button. to about where my green arrow is.
Then it will look like this

Trend chart in Qlik Sense not changing on user selections after applying set analysis on the trend chart

I have a trend chart in Qlik Sense where I have applied the following condition to filter the data :
avg({$<DATA_SUBJECT_NAME={'CALL','ACCOUNT','IDENTITY','FINANCIALTRANSACTIONS','HOUSEHOLD','FLOWS','INTERACTIONS'}>}HEALTH_KPI_NUM)
The chart is displayed perfectly but when I make other selections on the sheet the chart remains unaffected. Where am I going wrong?
Exactly as Stefan said. If you are selecting in the field that you have already applied set analysis to there will be no change as the set analysis will override the selections. You can try this if you want the selections to be honoured
avg({$<DATA_SUBJECT_NAME*={'CALL','ACCOUNT','IDENTITY','FINANCIALTRANSACTIONS','HOUSEHOLD','FLOWS','INTERACTIONS'}>}HEALTH_KPI_NUM)
The only change is to add *= this says the set analysis should be the intersection of the actual selection and the provided list

Use conditional statements to add data to scatterplot

I am new to VBA and have not had experience with creating many charts.The chart has to be created by hand because the data has to be visually inspected to see if it meets certain criteria, and not every cell in a column needs to be added to the chart. The chart is to show information for each asset. Not every asset will have information that can be entered on the graph. Is there a way to use VBA to conditionally add data points to a graph?
For example if an asset sees values between 0-30 plot a dot (green) 30-50 (red) etc.
Such a scenario can be achieved with data layout and formulas. No need for VBA, which would need to be re-run, where as formulas will update automatically.
Consider the following screenshot:
The formula in cell C3 is =IF($B3<30,$B3,NA()) and in D3 =IF($B3>=30,$B3,NA()) copied down.