Forum Discussion
Display a daily distinct count, using data from a MsSQL Temporal table with SCD
- 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.
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.
Hi Janey,
Thank you for your answer, this solved my problem.
In my original solution I already had a date table, so your solution worked inmediately.
Greetings Harald