Hey all,
I have a table that contains a list of reservations and a table that contains a list of "BOMS" (bill of materials). I would like to count the number of times a BOM shows up in the reservation table in a specific fiscal year.
An example of each table:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]BOMID[/TD]
[TD]FY2010[/TD]
[TD]FY2011[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Based on a reporting date of FY2010.
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]BOMID[/TD]
[TD]BOM Description [/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item 1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]Item 2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]Item 3 [/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
The "Count" column is the one that would contain the equation that I am looking for. The equation I currently have is like this:
=COUNTIFS(AllReservationsFiscal[BOMID],[BOMID],(INDIRECT("AllReservationsFiscal[FY"&$B$1&"]")),(INDIRECT("AllReservationsFiscal[FY"&$B$1&"]"))>0)
This returns a value of 0. This - [FY"&$B$1&"] - is a string that refers to my reporting date. In my example above, B1 = 2010.
Please let me know if you need more information.
I have a table that contains a list of reservations and a table that contains a list of "BOMS" (bill of materials). I would like to count the number of times a BOM shows up in the reservation table in a specific fiscal year.
An example of each table:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]BOMID[/TD]
[TD]FY2010[/TD]
[TD]FY2011[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Based on a reporting date of FY2010.
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]BOMID[/TD]
[TD]BOM Description [/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item 1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]Item 2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]Item 3 [/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
The "Count" column is the one that would contain the equation that I am looking for. The equation I currently have is like this:
=COUNTIFS(AllReservationsFiscal[BOMID],[BOMID],(INDIRECT("AllReservationsFiscal[FY"&$B$1&"]")),(INDIRECT("AllReservationsFiscal[FY"&$B$1&"]"))>0)
This returns a value of 0. This - [FY"&$B$1&"] - is a string that refers to my reporting date. In my example above, B1 = 2010.
Please let me know if you need more information.