Qlik set analysis, partial selection of a field through modifier while ignoring the same fields selection - data-visualization

I have fields, score, month, region and area. I need some of the score for maximum month. But my selection boxes have month, area and region.
On selection of month box the value changes although in modifier I have specified month to max month variable.
Sum(1<month={"$maxmonth"},region=p(region),area=p(area)>score)
It still changes value when I select some other month.

Your variable should be maxmonth = max({1}month). Then it will stop changing with your selections

I have just figured out it is because of the variable for max month but I don't understand why is it happening. if I hard code the maximum month it works without any identifier

So I figured out that my selections in the selection box were changing my variables value which in turn was changing the month fields modifier. I

Related

Dynamic column selection in Excel

I have a table in excel with months as columns and couple of rows with data. I would like to add a column on the end of the table that will populate with data from the table as the YTD sum of the month columns. The YTD sum will be based on dynamic selection of the month selected from a list. Have a look at the attached image to see what I mean please, in the example Aug-16 has been selected in column P and the YTD total is returned correctly for this period (this is what I want to happen, but not sure how to?:
enter image description here
The dynamic selector I can do fine (Data validation -> list) but I'm not sure how to populate the column with the correct data, that is YTD for the month selected in the dynamic column added. Not sure if it can be done with MATCH, INDEX etc? I tried, also VLOOKUP, but not working....
One solution is to use this formula using the same parameters as your example image.
=SUM(C3:OFFSET(C3,0,MATCH($P$2,$C$2:$N$2,0)-1))

I need to convert total date to month only

I set up a google forms form for my work where my employees pass information and this information is recorded in a spreadsheet. The information, when recorded, automatically inserts a date and time in the first column of form responses. However, when I enter the code = month (a1), it always returns the answer "1" or "January" and this information does not match the date entered in the column. How do I fix this?
If you are entering '=month(a1)' for every row, then you are always taking the month of the top left cell in the sheet. You would need to adjust the row number for the row you are in.
You could use something like '=month(now())' to ensure you are always getting the month of the current date.

How does orderby work on an collection key attribute in analysis services - SSAS

Let's say I have a simple hierarchy of Date dimension: Year - Month - Day.
As it is known the the Month has to have the keycolumns the month and the year. It would be a collection. Otherwise if it had only the month wouldn't work. For more info about that check this.
Now my question is:
When the orderby property is set to key, How does it know what key to get? There are two columns in the keycolumns property. How does it know it has to sort on the month number? What does the year column play in all this?
When you go to KeyColumns press (...), will pop-up a modal windows with the columns you can select.
Just select both columns by the order you want from Top to Bottom.

ssrs dynamic value in text box and title

I have a report which runs weekly and in one of the tables it says week1, week2 etc all the way to the recent week (e.g. week28 currently)
This table is in the report and I would like the week28 value to be in the title. The title reads "summary report for" I want to place the week number at the end so every week the report is run it changes.
There are also a couple of other places I would like to place the dynamic value but i'm guessing the code will be the same.
Assuming you have a sorted dataset called "MyDataset" with a column that contains the week names called "Week", you could simply use the following expression:
=Last(Fields!Week.Value, "MyDataset")
This returns the last value in the Week column of MyDataset.
Alternatively, you could construct the week number using some of the date functions, for example the datepart function

Single aggregate column / running value sum on chart

We're currently porting some excel reports to SSRS. One of those reports has a graph where the last column is the MTD (Month to date) average for both series (Availability and Availability Goal) just like the example below:
I did some research about RunningValue() but whenever I did it it would add a second bar to my graph (the running value would have the same group).
Is it possible to have only one aggregate column (just like the screenshot) ?
Thanks in advance,
One way would be to force the average through the SQL query. For example, if your resulting table shows days of the month, and the Availability value, you could UNION a "dummy" day (max days of the month + 1) with the averaged value. You can either add an addition column to your SQL for the label names, i.e. the "dummy" day would show "Average", or in SSRS you can change the Label expression to replace the last value with a text.