Forum Discussion

Harald's avatar
Harald
Frequent Visitor
5 years ago
Solved

Display a daily distinct count, using data from a MsSQL Temporal table with SCD

Hi, first post here.   My question is as follows, I have a temporal table which contains info about computers and their OperatingSystemBuild: ObjectGUID OperatingSystem OperatingSystemBuild ...
  • v-janeyg-msft's avatar
    5 years ago

    Hi, Harald 

     

    It’s my pleasure to answer for you.

    According to your description,I think you need to crate a date table ,then create a measure used in 'values'.

    Like this:

    measure =
    COUNTROWS (
        FILTER (
            Computers,
            [SysStartTime] <= MAX ( 'Table'[Date] )
                && [SysEndTime] >= MAX ( 'Table'[Date] )
        )
    )

    Here is my sample .pbix file.Hope it helps.

    If it doesn’t solve your problem, please feel free to ask me.

     

    Best Regards

    Janey Guo

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.