Forum Discussion
Userelationsihp with dates power bi
- Anonymous2 years ago
Hi jacostal ,
First of all, many thanks to audreygerred for your very quick and effective replies, and I will give some additions below:
1.Create the sample table.
2.Create the new measure to calculate created tickets.
created Tickets = VAR ticket_ = CALCULATE( COUNTROWS('Task Table'), USERELATIONSHIP('Task Table'[Created Date], 'Table'[Date]) ) RETURN IF(ticket_ = 0, 0 , ticket_)3.Create the new measure to calculate closed tickets.
closed tickets = CALCULATE( COUNTROWS('Task Table'), USERELATIONSHIP('Task Table'[Closed Date], 'Table'[Date]) )4.Drag the measure into the table visual and line chart.
5.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi jacostal ,
First of all, many thanks to audreygerred for your very quick and effective replies, and I will give some additions below:
1.Create the sample table.
2.Create the new measure to calculate created tickets.
created Tickets =
VAR ticket_ = CALCULATE(
COUNTROWS('Task Table'),
USERELATIONSHIP('Task Table'[Created Date], 'Table'[Date])
)
RETURN
IF(ticket_ = 0, 0 , ticket_)
3.Create the new measure to calculate closed tickets.
closed tickets =
CALCULATE(
COUNTROWS('Task Table'),
USERELATIONSHIP('Task Table'[Closed Date], 'Table'[Date])
)
4.Drag the measure into the table visual and line chart.
5.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.