How to Keep the groups in a sequence - ssrs-2012

I have a requirement where i have 2 datasets.One is showing calender and another is showing consolidated data for each month. In the input , i have a date calender and a text field for the number of months. Suppose user selected date as '2020-04-01' and number of month as 5, so the report will fetch the data for each month starting from April to August. The reports are grouped on month for Calnder and for the consolidated. So in my 1st page it is showing the calender data for April month and in the next page it is showing the calender data for May then calender data for June then calender data for july, then calender data for August. Now in the next page it will show the consolidated data for APril, then consolidated data for May..till consolidated data for August. But My requirement is It should first the calender data for April month , then consolidate data for April month, then Calender data for May month then consolidated data for May month..till month of August.
I guess there is some tricks to handle these page breaks where you have mulitple groups on datasets.
Can anybody help me on this.
Regards
Subrat

Related

SUMIFS Between Conditions

I am looking for some help with a SUMIFS formula.
I am trying calculate the revenue between dates for a coupon code, where the coupon code sales are in a separate sheet. I need the between dates to be until that discount code appears in the sheet again.
For example,
If a discount code is promoted on the 25th of January and again on the 30th of January, I need the 25th of January row to show the sales since then until the SAME code is promoted again (eg. between 25th January and between 30th January). The 30th of January row would then show the revenue from that date onwards, until the code appears again in another date row in the future.
This is my formula:
=SUMIFS('Code Revenue Feed'!$E:$E,'Code Revenue Feed'!$C:$C,D2,'Code Revenue Feed'!$A:$A,">=" &$B2)
This formula does not show between dates, only from the date it is promoted but I need to show from that date, until the next date the code appears again.
Here's my dataset (please filter the code column by KATIEHAYES so you can see what I mean):
https://docs.google.com/spreadsheets/d/1kzU6T6a95WPoCDkkMjDmqWkKTDOxA0whn1Zk5kGRbBQ/edit?usp=sharing
For this to work, you need to enter an end date in column C (in my copy of your data, this is in cell C664 of the Posting Details UK sheet) where I have chosen 31-Dec-2022 (as your file is view-only, and because you appear to have a filter active on the Posting Details UK sheet, when I copied your data the last row of data on my sheet is 663)
=SUMIFS('Code Revenue Feed'!$E$3:$E$5180,'Code Revenue Feed'!$C$3:$C$5180,D2,'Code Revenue Feed'!$A$3:$A$5180,">="&C2,'Code Revenue Feed'!$A$3:$A$5180,"<"&INDIRECT("C"&IFNA(match(D2,D3:D$663,0)+ROW(),664)))
the above formula can be entered in cell E2 of your UK sheet, and then copied down. This formula uses the INDIRECT() function to determine the 'until' date - if a match for the current coupon code cannot be found in the remaining rows, then the end date from row 664 is used (you will have to adjust both the 663 and 664 references as you have almost 200 more rows of data).

How to Limit data for Max[Fiscal_Year] and Max[Fiscal_Month]

I have 2 columns named Fiscal_Year and Fiscal_Month . Fiscal year is integer type and fiscal month is string type . Now I want that visualization should show data for max[fiscal_month] in accordance to max[fiscal_year].For eg if data contains month till sept for year 2021 then data should show only sept month data for year 2021.
Any idea how do we do that ?
First Concat the columns of month and year,Then convert it into date format eg.Date(Concatenate([Month],"/",[Year])),make sure the date format is MM-yyyy which will get you a column with format like 09-2021. Now Create any visualization and go to show/hide section and show only data with max month.

I am trying to do a Month Over Month review but not all months have data and the users want placeholders for the months with no data

I am trying to do a Month Over Month review but not all months have data and the users want placeholders for the months with no data. I was trying to use my start and end date parameters but I am not getting anywhere.
I am using SSRS - attempting to use a matrix to show on the left hand side for the rows the Month and the column grouped by current year and prior year which is generated from my date parameters. I have four date parameters; a current year star, current year end, prior year start and prior year end.
I can get the matrix to populate if the prior year has data for a month that the current year does not and vice versa but I cannot get the data to populate with a placeholder for a month with no data.
Has anyone had success doing this without using a CTE?

SSAS Show Monthly or quarterly data based on user selected date

One of our client wants to visualize data based on the date. We have our own reporting tool which connects to SSAS Cubes.
Clients wants to choose one date, and based on the date chosen we have to show data for the last 36 months on Monthly basis anything prior to 36 months must be on Quarterly basis. Any help achieving this is appreciated.
The output will be similar to this:
So for example if we choose today's date, the Date band should display
monthly data till Apr-13, anything prior to that should be shown on a
quarterly basis.
Thanks and regards,
Sheetal
you will have to create calculated columns in your report which will show data based on the selected date.

Visual Studio Report Designer: I don't understand group filters

I'm writing a report that has proposal information by estimator per month. So I created a matrix where each row is grouped by estimator and each column is grouped by the month.
The thing is, my query includes data for this year AND last year, but the columns by month should only contain this year's information. So I though simple, I'll create a filter: Year(variable_date) = Year(Today()).
When I do this, no record information shows up. But then I changed the column to group by month AND year and suddenly, it works. Only 2015 records show up in the calculations per month.
Why did I need to group it by month AND year? Why couldn't I just group by month and have the filter remove records that didn't have the correct year using the filter group property tab?
Thanks!
P.S. I hope I have the tags right...
It sounds like month and year are separate fields. So when you group only by month it is grouping all of the rows where the value for that field is the same. (Month=8 exists in 2014 and 2015.) The values are just numbers to SSRS and it doesn't know it needs to look at the year field too unless you tell it to.

Resources