Forum Discussion
Comparing Volume by Dates
- 3 years ago
Hi,
Create a non-active relationship (Many to One and Single) from the Admission date to the Date column of the Calendar Table. To your visual, drag Year and Month name from the Calendar Table. Write these measures
Discharged = distinctcount(Data[Patient ID])
Admitted = calculate([discharged],userelationship(Data[Admission date],Calendar[date]))
Hope this helps.
- 3 years ago
I got it. Needed to remove [Date] from the compelte date.
Thank you!
Hi,
Create a non-active relationship (Many to One and Single) from the Admission date to the Date column of the Calendar Table. To your visual, drag Year and Month name from the Calendar Table. Write these measures
Discharged = distinctcount(Data[Patient ID])
Admitted = calculate([discharged],userelationship(Data[Admission date],Calendar[date]))
Hope this helps.
Hi Ashish,
I appreciate the assistance.
When creating the Admitted measure, I'm getting the followng error: USERELATIONSHIP function can only use the two columns references participating in relationship.
- jenniferrayner3 years agoFrequent Visitor
I got it. Needed to remove [Date] from the compelte date.
Thank you!
- Ashish_Mathur3 years agoSuper User
You are welcome.