I have a report that I am putting together about desktop PCs. I am pulling the information out of a SQL db and the end result is a graph that says how many PCs are "locked down" and how many PCs are "unlocked".
In order to find out whether the PC is locked down, I have to evaluate what is contained in the SMX_Local_Admins_DATA.Account00 field. I created the Record Status formula below for this purpose:
So, if there is something other than the three accounts above, a number 1 is generated for that record. So, for each record, 1 equals Locked and 0 equals Unlocked.
So, here is what this looks like on the report:
MACHINE NAME
Test Machine
Record Status SMX_Local_Admins_DATA.Account00
1.00 \\test machine\root\scott
0.00 \\test machine\root\admin
0.00 \\test machine\root\desktop
0.00 \\test machine\root\security
Running Total = 1.00
I have included a Running Total field that calculates the total number. The next formula I have for evaluating the status of the overall PC, not each record is called Computer Status:
MACHINE NAME COMPUTER STATUS
Test Machine Unlocked
Record Status SMX_Local_Admins_DATA.Account00
1.00 \\test machine\root\scott
0.00 \\test machine\root\admin
0.00 \\test machine\root\desktop
0.00 \\test machine\root\security
Running Total = 1.00
So, at this point I know if each PC is locked or unlocked which is what I need. Now, my problem is that I cannot group by the Computer Status formula field in order to list all of the locked PCS and all of the unlocked PCs. Where do I go from here?
In order to find out whether the PC is locked down, I have to evaluate what is contained in the SMX_Local_Admins_DATA.Account00 field. I created the Record Status formula below for this purpose:
Code:
if not ({SMX_Local_Admins_DATA.Account00} like '*desktop"' OR {SMX_Local_Admins_DATA.Account00} like '*security"' OR {SMX_Local_Admins_DATA.Account00} like '*admin"')
then toNumber(1)
else toNumber(0)
So, if there is something other than the three accounts above, a number 1 is generated for that record. So, for each record, 1 equals Locked and 0 equals Unlocked.
So, here is what this looks like on the report:
MACHINE NAME
Test Machine
Record Status SMX_Local_Admins_DATA.Account00
1.00 \\test machine\root\scott
0.00 \\test machine\root\admin
0.00 \\test machine\root\desktop
0.00 \\test machine\root\security
Running Total = 1.00
I have included a Running Total field that calculates the total number. The next formula I have for evaluating the status of the overall PC, not each record is called Computer Status:
Code:
if {#RTotal0} >=1 then "Unlocked"
else "Locked"
Test Machine Unlocked
Record Status SMX_Local_Admins_DATA.Account00
1.00 \\test machine\root\scott
0.00 \\test machine\root\admin
0.00 \\test machine\root\desktop
0.00 \\test machine\root\security
Running Total = 1.00
So, at this point I know if each PC is locked or unlocked which is what I need. Now, my problem is that I cannot group by the Computer Status formula field in order to list all of the locked PCS and all of the unlocked PCs. Where do I go from here?