Multi year values in 1 row to multiple rows - data-modeling

Hi, I need some suggestion on scenario when multi year values are present in same row in the source data feed as shown in Lease_Annual_Rent table below, and in the data warehouse side, 'Lease Annual Rent Fact' table which has values for each year in a separate rows.
Is there any advantage/downside of following this approach in dimensional modeling. One issue I see that number of rows will be 11 times more than data feed.

Related

Is it possible with Mongo DB to select data based on 2 IDs in Mondo DB document?

I have an array dataset ( first column is list of cities, second and other columns contain distance between selected city from first column and selected city in second and other columns ).
Tried to use many to many relationship in SQL Server, but it seems to complicated and nearly impossible.
For now i have 2 options for implementing main task.
My main task is to select distance between 2 cities based on 2 dropdown selections, which data source is city from fitst column and selected city in second and others column.
Is it possible in Mongo DB to solve this task ? I am not sure, if i can query a bson document based on 2 IDs ( first ID is city from first column and second ID is city from other column ).
Please help

Create a Table based on results of a column of data in another worksheet and eliminate null values

To set this up....I have roughly 12,000 rows of data that captures sales detail activity. I have an Excel function in a column to the right of the data that identifies the invoice number based on unique qualifiers (if the transcation meets the qualifier it lists the invoice number and, if not, assigns ""). Of the 12,000 rows of data maybe 50 will qualify. I then need to use the invoice numbers that qualify to pull sales and COGS data for all those invoices that match the qualifying invoice numbers (another explanation is necessary at this point....an invoice that qualifies will be listed twice....once that contains the information that identifies whetehr it qualifies but that row will have no sales data and a second time with thye dsales data...I do not know why it does it this way. So, in other words, the row of data with the sales information I need to capture does not contain the data that allows me to recognize that an invoice qualifies). Each mopnth adds the current month's sales data to the population...so, 12,000 rows this month and it will be 16,000 next month and so on.
I was hoping to create a table that pulls only the qualifuying invoice numbers from the sales data (it would basically create a table of 50 (in my example) while ignoring the 11,950 rows where the cell equals ""). I can do a simple pivot table but next month I need it to recognize the new population of data and update based on the additional rows of new monthly data as well as the rows of data from prior months.
Any soultions/ideas are much appreciated!

How can we include 2 datasets in SSRS table with row and column grouping

I have 2 different datasets. one for current month and another one for previous months data. I want to compare the data under a single SSRS table. The SSRS table has column and row groups. How can I relate it and get a combined report from those datasets. Please help.
If you are not using cumulative data, have you looked at using LookUp?
https://learn.microsoft.com/en-us/sql/reporting-services/report-design/report-builder-functions-lookup-function

MS Excel - Find Missing Date values between two dates in a column full of dates

I have a master list of SKUs in one table set as a column with a different SKU listed in each row.
I have another table with a daily snapshot of items which I have in stock between 7/1/17 and 7/31/17 in each row. The table shows the item SKU in one column, the warehouse where there is quantity in another column, and the quantity available within that warehouse in another column. There can be multiple occurrences of a SKU on one date if there are quantity in multiple warehouses. The table only lists SKUs on occurrences where there is quantity within a warehouse. If a SKU has no quantity within any of the warehouses on a date, it will not be listed in the table corresponding with that date.
In my table with the master list of SKUs I want to create a column that will show the the number of days within a range of dates (7/1/17 to 7/8/17) in which there were no quantity of the SKU being referenced available in any warehouse.
To show a more precise idea of what it is I am trying to do, I have posted a youtube video here: http://youtu.be/6CWLN6wzaWQ?hd=1
Have a look at the following URLs - I feel partially similar cases are discussed and resolved over there.
It will surely give you some lead to further work on.
How to return multiple values between two dates in excel?
https://answers.microsoft.com/en-us/office/forum/office_2007-excel/finding-missing-dates-in-column/8c49800a-6997-4585-b1f4-abdeaa64e718

Dynamically add columns in SSRS

I am tasked with creating a report in SSRS that can display data covering anywhere from 1 week up to 52 weeks.
What I am trying to avoid is writing a huge query that will pull all 52 weeks worth of data and have it show on the report, unless the user wants that data to appear.
So if the user wants January 1st - February 1st it will only show 6 columns of data instead of all 52 columns. How would I do something like that?
Easy - you need to use a Matrix.
A grid gives you a fixed number of columns and many rows.
A matrix gives you many columns and many rows.
Try this How to Create SSRS Report with Dynamic Columns
Create column grouping on your tablix, for example you have column WEEK and you are bringing data from 1st Jan to 1st Feb.
Column grouping on column WEEK will generate only 5 columns if you have data for every week.

Resources