Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Cumulative Computers logged on

 

 

 

 

 

 

 

 

 

 

OK, now to try explain what I am trying to do ...

  

I have to report monthly on patch compliance for my organisation, we have 2500 desktop/laptops and I am constantly quizzed why we don't have 100% compliance across the organisation and I have tried a million times to explain that 1400 of the machines are laptops and over the course of a month any one of these machines can be disconnected from the network for 2-3 weeks or even longer which means trying to catch them in a 4 week period (depending on where in our 4 week rolling cycle and when reports are run) can be difficult. Add to this machines being replaced / lost / broken in 60 days you still don't see all 100% of machines but after 60 days we have sccm clean out this old data.


In powerbi I have a dashboard that shows our compliance very well but what I want to have is a chart showing the number of machines that have logged on today (normally 75% of the total machines) BUT i want to show the cumulative number of UNIQUE machines that have logged on going back 60 days - this should in theory manage to catch all the machines with each day adding more machines. Each day will have all previously logged on machines + the new machines for that day counting backwards to 60 days ago.


I have the data captured live from our SCCM environment for logon on times.


In PowerBi - the table with the logon info in is called

"Clientinfo"


and column is called

"Last_Logon_Timestamp0"


format is (UK Date format)

"30/10/2018 09:06:13"

  

I have the data exported into excel and have worked out the query to get what I want - I have created some fake data to demonstrate. The data is plotted on a line graph to show the number of computers logged on increasing as you go back x days.


What I am struggling with is translating this into PowerBi - any help would be greatly recieved + this may be useful to any others having the same issue with trying to explain there compliance numbers etc.

 

 Excel - column E - "Decimal"

=COUNTIF($B$2:$B$60,">"&TODAY()-C2)/COUNTA($B$2:$B$60)

 

I have put 60 machines and gone back the 60 days but in reality there are 2500 machines.

 

Data

NameLast_LogonDays%Decimal
Comp129/10/2018 10:00142.370.423729
Comp229/10/2018 10:00249.150.491525
Comp329/10/2018 10:00366.100.661017
Comp429/10/2018 10:00472.880.728814
Comp529/10/2018 10:00574.580.745763
Comp629/10/2018 10:00674.580.745763
Comp729/10/2018 10:00774.580.745763
Comp829/10/2018 10:00874.580.745763
Comp929/10/2018 10:00974.580.745763
Comp1029/10/2018 10:001076.270.762712
Comp1129/10/2018 10:001176.270.762712
Comp1229/10/2018 10:001276.270.762712
Comp1329/10/2018 10:001376.270.762712
Comp1429/10/2018 10:001476.270.762712
Comp1529/10/2018 10:001576.270.762712
Comp1629/10/2018 10:001676.270.762712
Comp1729/10/2018 10:001776.270.762712
Comp1829/10/2018 10:001876.270.762712
Comp1929/10/2018 10:001976.270.762712
Comp2029/10/2018 10:002076.270.762712
Comp2129/10/2018 10:002176.270.762712
Comp2229/10/2018 10:002276.270.762712
Comp2329/10/2018 10:002376.270.762712
Comp2429/10/2018 10:002476.270.762712
Comp2529/10/2018 10:002576.270.762712
Comp2628/10/2018 11:002676.270.762712
Comp2728/10/2018 11:002776.270.762712
Comp2828/10/2018 11:002876.270.762712
Comp2928/10/2018 11:002976.270.762712
Comp3027/10/2018 11:003076.270.762712
Comp3127/10/2018 11:003176.270.762712
Comp3227/10/2018 11:003276.270.762712
Comp3327/10/2018 11:003376.270.762712
Comp3427/10/2018 11:003476.270.762712
Comp3527/10/2018 11:003576.270.762712
Comp3627/10/2018 11:003676.270.762712
Comp3727/10/2018 11:003776.270.762712
Comp3827/10/2018 11:003876.270.762712
Comp3927/10/2018 11:003976.270.762712
Comp4026/10/2018 12:004076.270.762712
Comp4126/10/2018 12:004176.270.762712
Comp4226/10/2018 12:004276.270.762712
Comp4326/10/2018 12:004376.270.762712
Comp4425/10/2018 13:004476.270.762712
Comp4520/10/2018 14:004576.270.762712
Comp4610/09/2018 15:004676.270.762712
Comp4710/09/2018 15:004776.270.762712
Comp4810/09/2018 15:004876.270.762712
Comp4910/09/2018 15:004976.270.762712
Comp5010/09/2018 15:005086.440.864407
Comp5110/09/2018 15:005186.440.864407
Comp5201/09/2018 16:005286.440.864407
Comp5301/09/2018 16:005386.440.864407
Comp5401/09/2018 16:005486.440.864407
Comp5501/09/2018 16:005586.440.864407
Comp5601/09/2018 16:005686.440.864407
Comp5701/09/2018 16:005786.440.864407
Comp5801/09/2018 16:005886.440.864407
Comp5901/09/2018 16:0059100.001

 

 graph - at top of page - graph is of columns C & D

 

I'm very new to PowerBi and am having issues working out how to do this on the fly (the data is refreshed from SCCM every couple of hours).

4 Replies

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Hi jmcgowan,

     

    Have you solved your issue? If you have, could you please kindly mark one answer to finish this thread?

     

    Regards,

    Jimmy Tao

    • Anonymous's avatar
      Anonymous
      Not applicable

      Not as yet - I have asked someone I know to look at it - if I get a solution I will post it here.

       

      The link and suggestion above may be good pointers but I really can't get my head around how to implement it so have asked someone else to take a look for me.

       

      The data I have in the tables already is exported from SCCM exactly as I want it then it is simply a case of making it look the way I want.

       

      As this is manipulating the data from within PowerBi, I am still at a loss, if anyone can break it down a little that may help.

       

      The excel spreadsheet with the calculation I listed above work perfectly but is a pain to export and split out all the data each month, so I am using that for now until I can work out this method.

       

      cheers