Qlikview Fixed values in bar graph and - qlikview

Hello i have a question in qlikview
How I can set fixed values ​​in a bar graph?
and
How is the expression to make 3 buttons that display the data from the last year, month and week?
I have that dimensions (In Spanish->English)
FECHA CREACION DATE START
FECHA CIERRE DATE FINISH
Semana -> Week

To create a button that selects week or month create a trigger with following code:
Month
='>='&MonthStart(Today())&'<='&MonthEnd(Today())
Week
='>='&WeekStart(Today())&'<='&WeekEnd(Today())

Related

Mismatch on the day of week and week name in Pentaho

I am creating a date dimension table using pentaho and im following the tutorial linked https://www.fabguy.de/howto-create-a-date-dimension-with-pdi-kettle.html
but when I preview my data, I found a mismatch between the column day of week and the column week_name : the week_name showed 'Monday' but the day of week showed '2' when the date is 1900-01-01.
The day of week was generated from the calculation 'Day of year of date A' in the calculator, and the week_name was generated from 'create a copy of field A'.
I noticed that the week_name is the correct one, but I really don't understand why the day of week is wrong.
the whole process looks like this:
enter image description here
the calculator named Calculate additional Dates looks like this:
enter image description here
the mismatch looks like this:
enter image description here
I really want to know how to make the day of week become the correct one, if anyone know how to fix it or the reason of it, plz leave a message here!
Thank you very much!!!
By default, Pentaho starts with Sunday (1) if you want to start with Monday try to use the Formula step with the WEEKDAY function instead.
The Formula step has 3 type
Type 1: Sunday is the first day of the week, with value 1; Saturday has value 7
Type 2: Monday is the first day of the week, with value 1; Sunday has value 7
Type 3: Monday is the first day of the week, with value 0; Sunday has value 6
For example, if today is Thursday I will get the following results

How to force to show beginning of the week in ssrs report

When the client select start date ,end date and group by : weekly is there any way to force to show in the week column as first day of the week. For example if I choose 10/1/2019 as start date and 10/2/2019 as end date and group by : weekly then the week column should show 9/29/2019
Right now the expression I am using is
= Switch(Parameters!GroupbyTime=“4”, CDate(Fields!groupweek.value).ToString(“Mm/Dd/yyyy”)
But it’s giving error can somebody help me ??
You can subtract the number of the weekday from the date plus one day for the first day of the week.
=DATEADD("D", 1 - WEEKDAY(Parameters!START.Value), Parameters!START.Value)

SSRS Calendar Report

I am using SSRS in Visual Studio 2008 and need to create a report that displays names on a calendar based on the dates pulled from the database. I would like the calendar to display a month at a time My query pulls data that looks like the following:
Name StartDate EndDate NumDays (Shows difference between Start and EndDate)
Tim 1/1/2000 1/1/2000 1
Bill 1/4/2000 1/6/2000 3
Tim 1/10/2000 1/11/2000 2
For my report, I would need a Calendar that displays "Tim" on 1/1, 1/10, and 1/11 and display "Bill" on 1/4, 1/5, 1/6.
Any advice would be greatly appreciated. Thanks in advanced!
To do this effectively you will need a table of dates (either in your database or generate one in your SQL query). You can then left join from that table in your query which will ensure you have a row for each day. The table of dates should also identify which dates belong to the same week. (One way would be to use the DATEPART(WK,Datecolumn) function.)
Next create a tablix in your report which groups by day for the columns and by the week identifier for the rows. You'll probably need to pull in the last few days of the previous month in order to get it to align to a Sunday start date (or whatever the first day of your calendar row is).
Each cell in the tablix will now be a box on your calendar.

Pass the monthly value of an SSRS report chart into another report with date from and date to parameters

I have a yearly chart that it broken down into the 12 months Jan - Dec. The report contains various parameters including a yearly dropdown that changes the chart and report.
This all works fine within the first report.
The problem is that I have set up an action on the chart to go to a second report with a monthly breakdown, so my question is how can I pass the monthly value from the first report to the second?
The monthly report has an additional date from and date to parameter, so for the month of January it would need the values: Date From: 01/01/2010 and Date To: 31/01/2010 for example.
Thanks in advance.
Since you have the year and month integer values, you can construct the start and end dates to pass to your other report using expressions.
The start of the month will be:
=DateSerial(Fields!Year.Value, Fields!Month.Value, 1)
Where Year and Month are the integer values from the Chart/Dataset.
The end date is a bit more complicated; since the day part can be 30/31, etc, but we can just add one month to the above expression to get the first of the next month, then go back a day:
=DateAdd(DateInterval.Day
, -1
, DateAdd(DateInterval.Month, 1, DateSerial(Fields!Year.Value, Fields!Month.Value, 1)))
This way your drillthrough report can get its date based parameters and you don't need any changes to your dataset/parent report.

Format date in Values for a Range (Gant) Chart SSRS 2008 R2

I have a date column in which the dates are re-curring every year. I'm only interested in the month really, but I can't just put the month number as the high and low value for the gant chart. Is there any way I can format the column? Any suggestions would be awesome.
The gant chart currently is taking the whole date and is working fine, but like I said it goes out to the next year.
Figured it out. So the DATECOLUMN I had was formated as such:
Example: 2013-01-01 00:00:0.000
In order to put in the GANT(RANGE) CHART in the series property, under values, I formated the Top Value and Low Value as =MONTH(DATECOLUMN) using the expression option.
Then for the Horizontal Axis Properties I set the Interval to 1 and Interval Type to Number. And There you have it Monthly time spans with only the Months 1 - 12 showing.
I must also note that I only had one time recorded. So I just did Top Value as: DATEADD(MM,1,DATECOLUMN) In Order to get the right time span in my dataset Script.
Which date format would u like to display in your chart.
If (month with year) like 'Sep 2013'
use this date format for the same.
SUBSTRING(CONVERT(VARCHAR(11),getutcdate(), 113),4,8)