Qlik sense problem with filtering panel and a graph - qliksense

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

Related

Tableau : How to get the Dashboard always display the latest 10 days worth of group statistics

My input text source always contains last 12 months worth of data. e.g: Current month is October. So My input source contains data starting from last Oct 1st to till date. But I want the aggregate statistics to be displayed on a daily basis for last 10 days of sales , 30 days of sales, 45 days of sale per product across various regions
I am trying to use window_avg fuction with something like window_avg(sum(sales), first() + datediff('day', window_min(min([date]))-1, dateadd('month',1,window_min(min([Date]))-1)) * 13,13) something like that. But I am not able to crack the exact logic.
Could you please suggest me some better way to achieve this, rather than using these kind of calculations. Also I am afraid if this goes wrong if there is data missing in the middle one or two days.
Any help is appreciated.
A very simple thing is to use a relative date filter. There's a UI for you to select they last N days.
Put the date on the columns shelf and set it to the date truncation of year-month-days. Put your measure row shelf. Put the date pill on the filter shelf too and use a relative date filter.
If you are doing simple aggregate like the sum of sales for a day it's easy and you'll not need to do anything else. You can can also fairly easily create a table calculation by right clicking on the measure and choosing one of the quick table calculations. Even when I'm doing a more sophisticated calculation, I start with a quick table calculation and then start editing.
If you are doing something like a moving average, the filter and the moving average can interact. For example, if I'm showing a 5 day trailing moving average over 30 day period, the first few days do not get averaged in the same way -- you don't have days over 30 days ago. If that's not really an issue for you, that's cool and you are done.
If it is an issue, it's going to be trickier. I'd suggest creating a second filter based on a table calc. The reason is the order of operations in Tableau. The raw data is filtered then aggregated by the database, then the table calcs are performed. If there are any filters on table calculations, then they are filtered after that. So basically, in my example, you want create a filter for 35 days on the date, then create a table calc on the date -- like using the INDEX() function. Filter the index function to show 30 days worth, then you've got a moving average that uses 35 days to compute the average, but only shows 30.

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.

Powershell: Get data from line chart to excel

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?

Tableau Draw Financial Data Series

I am new to tableau. I am just trying the simplest task: I want to draw a stock price time trend. I have data and I have price. But no matter how I tried, tableau seems no option for this raw data drawing-- you have to select a measure, whether sum or average or count but no option for just raw data. Can someone tell me how to do this? Thx!
Sum should be fine and as you add dimensions the granularity will be determined. For example, Take one of your stocks and add the date to columns and the symbol to rows. Most likely you want to see daily close price so right click and change to exact date. At this point the sum shouldn't matter because you should only have one price for each day in your record. If you have hourly price data, I would suggest using close price or change the date to the hour level.
In the Analysis menu uncheck aggregate measures, then no aggregations are performed on the measures and you see all the values.

Date calculation - Tableau

We have data that is submitted that is only YTD numbers. I'm wondering how I could display numbers that are subtracted along the Date field.
Ie, if I want to show the MTD movement on March. I will have to go March less February.
Now I know I can do this for individual measure fields. But having around 40+ measures seems a bit tedious.
http://kb.tableausoftware.com/articles/knowledgebase/creating-ytd-mtd-calculations
I tried to enter "Measure Values" but that is not a valid measure to put in the calculation.
Is there a way to set up a custom dimension?
Thanks,
Gem
After days of research, can't be done in tableau unless you want to labour for a week creating an almost cell by cell calculation. Data transformation in SQL will be a more feasible solution.
I had pivoted the data previously in SQL, so that I end up with 1 measure column instead of 40+. That enables you to minimise the calculation fields, so that you don't have to repeat all the calculation for individual measures.
Works well. Not for ratios though, as you will need to extract individual measures again so that you can divide them against each other. It's got pros and cons. Number of rows in the DB also multiplies.
Other solutions that preserves the table structure will be to use temp tables and do calculations on several temp tables.