Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Implementing USERELATIONSHIP on measures for different date columns

Hi,

 

I'm trying to create a line chart with running totals for three measures I created. 

 

The problem is my fact table has 3 date columns - I've created inactive relationships with my Date table but becuase the measures aren't straightforward I'm struggling. 

 

The data has the following headers:

 

SophRow_2-1675318465996.png

 

Unforuntaley participant status is only reliable for two measures and for the other I have to count total rows and using COUNTA as the status randomisation can change later on. 

 

They are:

 

Total Randomised = COUNTA('Participant Details'[Randomisation Date])
Total Withdrawn Post-Rand = CALCULATE(COUNTROWS('Participant Details'),'Participant Details'[Subject Status]="Withdrawn Post-Rand"
Total Completed = CALCULATE(COUNTROWS('Participant Details'),'Participant Details'[Subject Status]="Completed")

 

I can't get the USERELATIONSHIP to work, but I need to connect to the following columns:

 

Total Randomised is Randomisation Date

Total Withdrawn Post-Rand and Total Completed are Date of Completion / Withdrawal

 

Any ideas?

 

Best,

Soph

1 ACCEPTED SOLUTION
Anonymous
Not applicable

2 REPLIES 2
Pertunia
Regular Visitor

Hi Experts, I have been trying to group or split (can't find the exact word) the rows of the first column (PP_NO). I need to have 2 have two separate columns, one for 1 and the other for two. And also combine data of the same date in a column. 

Please advise how do i do that. 

Picture1.png

Anonymous
Not applicable

Solved!

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.