Powershell: Get data from line chart to excel - powershell

I know we can generate chart from excel/csv data using ms chart library. But my question is little bit different. I am just asking for possibilities.
Is there any way to get the data from excel chart?
For those who wants to know what i did. I search it on google but no related result found. I don't know where to start. So, no code written at the moment. I know how to read excel file in powershell.
Any suggestion.
Thanks for your time.

What you are looking for is data or rather data elements.
What is a chart? If we think about a chart: It has an X and Y axis:
It has for the sake of argument and X-axis and we can call that date or data points.
It has a Y-axis for say quantity. Your manager may ask, show me how many logins are done per day for the last 30 days?
You would map out by day or by week how many logins were done and to show this in a "pretty" way: you can do this with a chart.
So, back to your question:
You need to know - What scale are you dealing with? Days, weeks, months, number of readings, etc.
You need to know - What quantity was taken at that time: Days. weeks, months, number of readings, etc.
Once you have both of these, you can then build a chart. Otherwise, using your Google example: It is just a picture and would be meaningless if there is not thing to tie it for a data relationship.
Hope this helps?

Related

Qlik sense problem with filtering panel and a graph

I am trying to move the old excel to qlik sense, there is a graphic that is made from the previous day. Then that graph has the dimension of date and measurement has the sum of the amounts per month.
So filtering this by day can be done with a filtering panel, but clicking every day to show me everything can be annoying.
My idea was something like a box where you can enter a value, for example a 6, so when typing a 6 I should show the graph from day 1 to 5.
That is my problem, how could it be done? where can I enter some expression or something to the dimension to calculate the days I want in a simple and intuitive way.
Another idea I had, was to create in qlik sense when preparing the data, a new column that content the sum of the amounts of each day, so that value that I want to show would accumulate
What do you recommend? any help is welcome thanks

Modeler question: Is there a function in SPSS for multiple 'if' statements? Forecasting dates

I am trying to build a forecast for interest expense for floating debt in my company.
I have been given a set of ResetDates which help me match a given rate based on when the ResetDate is.
I have been successful in forecasting one period, but I need a much longer set of periods to satisfy my requirements.
I've tried derive nodes and nested if statements as well as filler nodes.
I am given this data to work with, I can only look at one ResetDate ahead.
Here you will find the data I used: Columns A/B/C/D is what i'm given, Column E (or 5th column from left to right) is what I want to derive as my output
I want to use 'InterestPayDate' and derive:
if it's more than 'NextReset' , the add 90 days to the 'NextReset' to create 'NextReset2'
That is as far as I can get.... where my problem lies is I want to look at NextReset2 and derive:
if 'InterestPayDate' is more than 'NextReset2', then add 90 days to 'NextReset2', if it's less than 'NextReset2', keep the current value for 'NextReset2'
Output should look like Column E here
Not sure if I need to dig deeper into the logical functions, in all honesty, I've just picked up SPSS and I am really trying to learn. Hopefully, you can point me in the right direction.
Thank you.
After computing the first NextReset2, you need to use a Filler node like the one below to change the value of the field.
You might need more than one identical nodes like this - one for each potential 90-day period that you are looking to extend the NextReset2 date. In your sample data, you will need at least two Filler nodes to get the correct value of NextReset2 for the last of the records.
There might be a more elegant way to do it, but this will work and it's easy enough to make copies of a node and string them together like this.
Please also see a sample IBM SPSS Modeler stream showing this approach here and using your sample data.

Tableau: How to show two measures from different data sources in the same chart (without blending)

Currently I have a chart that displays monthly GA visitors. This data comes from a GA table in the DB (Table 1)
I have a separate data source for purchases (Table 2). I have a chart that shows # of monthly purchases, but I'd like to combine these into one chart so I can show a monthly conversion rate.
Tableau keeps prompting me to blend data and I don't want to do that (I don't think). Tableau seems really unintuitive at times.
Please see the screenshot below. The numbers in red are what I'm looking for. They need to pulled on the same dates as the GA data. I can derive the conversion % from there.
Thank you! Tried a bunch of stuff but getting nowhere.

Forecasting with gaps in time series

Hi I'm trying to use the built in forecasting function in tableau and I think it's greyed out because my timeseries values have gaps. Basically there are hours during the day when nothing happened in my data, so nothing got recorded. I'm trying to build a forecast but my data jumps to the 2nd hour, then has results for each hour up to the 6, and jumps to the 9th. I know in ssrs I would try left joining the sql query I'm using as a datasource to a derived field with all 24 hours. I was hoping there was a slicker trick in tableau. All help is greatly appreciated.
Without having your worksheet, I'm not sure if it could be helpful, but have you already tried this quick fix suggested by Tableau?
Basically you should use discrete measures and using the "Fill missing values with zeroes" option.

Microsoft ReportViewer (2010) Chart Time as Category with intervalled values

first question here, so please pardon me if I'm doing something wrong.
I'm trying to create a Line Chart in MS ReportViewer 2010, which should show how many people were registered on any day. Basically it should show on the X axis the last 30 days, every day on a tick mark and on the Y axis the number of people registered on that day.
On my dataset, I have a 'People' table which includes the 'RegistrationDate' column.
So far (in the last 3 hours :) ) I've managed to do this:
- RegistrationDate on the X (Category) Axis
- CountRows() on the Y (Values) Axis
and if I leave 'Auto' in the Minimum and Maximum scale value I do get some result, but I have these problems:
1) in particular the chart includes on the X-Axis only the dates where there is at least one person registered, but leaves out the ones with zero. Basically the axis isn't divided in 30 days, but around 20, leaving out the days where there are no registrations
There's a check on 'always include 0' but changes nothing
2) I've tried to set the X axis minimum / maximum manually and the data disappears !
Thanks in advance !!
[edit_update] after bashing my head on it for 24h, and realizing
reportviewer documentation and tutorials are scant to say the least (I
guess people use other tools ?), I've implemented a workaround in the
code. In a loop from minDate to maxDate, I filled a list of objects
that have date and registration count as members, thereby filling the
x axis with every value possible, zeros as well. Far from nice and not
very flexible (I still don't understand how the x axis grouping works
very well), but it sort of does its job. Is this a case where I should
reply my own question ? [end_update]
after bashing my head on it for 24h, and realizing reportviewer documentation and tutorials are scant to say the least (I guess people use other tools ?), I've implemented a workaround in the code. In a loop from minDate to maxDate, I filled a list of objects that have date and registration count as members, thereby filling the x axis with every value possible, zeros as well. Far from nice and not very flexible (I still don't understand how the x axis grouping works very well), but it sort of does its job. Is this a case where I should reply my own question ?