Forum Discussion
Anonymous
3 years agoNot applicable
Creating a line graph with current active tickets
Hi there I love power bi but for this time a struggling how to solve the next problem. I have a table where I have starting date and an end date where problem is fixed. I want to create a line gra...
johnt75
Super User
3 years agoYou don't need a relationship with the date table, just use
Active cases =
VAR RefDate =
MAX ( 'Date'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Start date] <= RefDate
&& (
ISBLANK ( 'Table'[End date] )
|| 'Table'[End date] > RefDate
)
)