How to get dynamic rows but fixed columns by using ngFor in Angular2 - angular2-directives

I have a list of objects that I want to show in a grid of rows and columns using angular2 *ngFor
My requirement is that I want to show 6 columns and dynamic number of rows based on the number of objects in my list.
Ex: If my list has 24 objects then I want to display 4 rows and 6 columns
If my list has 30 objects then I want to display 5 rows and 6 columns
Please help.

Related

How to display single listview items in 2 columns and n number of rows in Xamarin Forms

I have a list with 5 items (count 5 is dynamic). I need to display first item in first row column 1 and second item in first row column 2 and second item in second row column and so on. eg. in the attached image, consider all the items as a single list of names but displayed in multiple rows but with two columns. Kindly don't suggest any plugin for this In the attached image, list count is 12. Have to arrange 12 items as in the image.
List view is not provide this functionality, You have to use collectionview instead of Listview
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/collectionview/layout

Align Contents in Two Columns (SSRS)

I am trying to display a report in SSRS as a table. I have three columns -Date, 5000 Brush, and 5000 Roller. I am grouping the 2 columns brush and roller with the date column. I have one dataset and it returns job numbers which are specific for the 2 columns. I have used expressions to sort out which column displays which record.
Example expression I have used in "5000 Roller" column is
=Switch(Fields!MachineName.Value="TP5000", Fields!JobNum.Value)
The report display all data successfully but my problem is the 2 columns are not aligned.
Below is an example of the output of my report
As you can see in the above image, the first 3 records are for the column "5000 brush" but the other records are for "5000 Roller", the problem is, records for "5000 roller" start from the 4th row of its column rather than from the 1st row.
Is there a solution to fix this issue?

VBA EXCEL filtering with Or criteria with 2 different rows

I want to filter with 2 criteria with "Or" relationship between the two criteria. However, the 2 criteria are on 2 different rows. I want to filter the first row for number for 6 to 7 or the second row for the date of 2010/6/16 and 2010/7/1. How could I code for the filtering?
My 2 columns

Formula help to extract rows meeting multiple criteria

I have a spreadsheet with over 600k rows. I need to extract data based on multiple criteria and grab only the latest change numbers of each.
So an item number may have multiple entries based on quarter start dates and desc codes because it's been revised several times in that quarter but I just want the most recent one (highest change number) and that row returned or marked in a new column to then filter out.
Hope that makes sense.
I have the following columns. Column A (Desc Code) which has 12 different codes in it, then Column B (Item Number several thousand), Column C (Period Begin, Start of the quarters dating back to 1998) and then a Column H (Change Number). I need to basically pull "Each" row containing the highest change number, for each Item Number in each Period it was available for each code.
So basically The change numbers vary depending on how many changes the Item Number had in the quarter.
And each time there was a change there is a change number for each Item Number for Each Desc Code (12 rows for each).
Thanks.
You lost me somewhere near paragraph 4 but let's simplify things. If you just had two columns -- Item Number and Change Number -- and you had a record for each change, you could just use Excel's subtotal feature: at each change in Item Number, show the MAX of Change Number.
Use the same logic for your situation. Create a new column that combines your "category" criteria (item & desc, or item & period, or whatever), sort by it, then subtotal against that new column and return MAX of Change Number.
Edit:
Item Period Change
100 1 1
100 1 2
100 1 3
100 2 1
100 2 2
I'm not sure if this is how your data looks but let's use it as an example (and's lets forget about Desc Code for now). If you want to find the latest change by item and period, create a new column by combining the Item and Period columns. For example, insert a column (C) and use the formula: =A2&"_"&B2. Now your data looks like this:
Item Period I&P Change
100 1 100_1 1
100 1 100_1 2
100 1 100_1 3
100 2 100_2 1
100 2 100_2 2
Now use Excel's subtotal feature (in the Data menu/ribbon, not the worksheet formula). Here's an example of what this looks like:
In your scenario, for the "At each change in" box, pick your new column (C), since that uniquely identifies the category you trying to identify (item AND period). "Use function" = Max. "Add subtotal to" = your Change Number column.
Click [OK] and Excel will add a new row with the maximum Change Number for each.

Get the max value of un-hidden cells

I have a table that has 20 rows and the table un-hides the amount of rows specified in the cell above my table. so if I put in 5 into the cell, 5 of the 20 rows will be un-hidden.
So now I would like to get the MAX of the say 5 cells that are now unhidden. How would I do this?
=SUBTOTAL(104,RANGE)
104 will give you the max of the unhidden cells. If you replace 104 with 4 it will operate as the normal MAX function UNLESS you are filtering the rows using the built in Excel table function.
Perhaps
=SUBTOTAL(104,your_range)