Forum Discussion
No results returned - USERELATIONSHIP
Hi,
Trying to get the total number of people (carers) starting & leaving the company.
I have 2 tables - A Calendar table & a Carers table.
I have a Many to one inactive rel-ship between the startdate & date columns in the Carers table & Calendar table.
I have a Many to one inactive rel-ship between the deleteddate & date columns in the Carers table & Calendar table.
USERELATIONSHIP('powerbi114 carer'[startDate],'Calendar'[Date]))
USERELATIONSHIP('powerbi114 carer'[deleted],'Calendar'[Date]))
2 Replies
- amitchandak
Super User
Anonymous , check the date 'powerbi114 carer'[deleted] do not have timestamp. Change datatype to DateTime and the format to include time
If there is then create a date
deleted date = 'powerbi114 carer'[deleted].date
or
deleted date = date(year( 'powerbi114 carer'[deleted]),month( 'powerbi114 carer'[deleted]),day( 'powerbi114 carer'[deleted]))
- AnonymousNot applicable
I had thought of that and had no timestamp.
But I did needed to remove the timestamp in the query editor.
Now it works.
Thanks a milllion!