Forum Discussion
ushah763
Helper I
7 years agosort grid using field from another table
I need help trying to sort a grid view based on a date field from another table. I am using the salesforce.com connector to pull data from our instance of the CRM. I am pulling events and opporu...
- 7 years ago
Hi ushah763 ,
To create a calculated column in opportunities table.
newcd = VAR mindate = CALCULATE ( MIN ( Events[Event Date] ), ALL ( Events ) ) RETURN IF ( 'opportunities'[CreatedDate] >= mindate, 'opportunities'[CreatedDate], BLANK () )Please find the pbix as attached.
Regards,
Frank
- 7 years ago
Hi ushah763 ,
A calculated column is not dynamic. So here we should create a measure to work on it.
Measure = var mindate = SELECTEDVALUE(Events[Event Date]) return IF(MAX('opportunities'[CreatedDate])>=mindate,1,BLANK())Please find the pbix as attached.
Regards,
Frank
- 7 years ago
Hi ushah763 ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
v-frfei-msft
Community Support
7 years agoHi ushah763 ,
A calculated column is not dynamic. So here we should create a measure to work on it.
Measure = var mindate = SELECTEDVALUE(Events[Event Date])
return
IF(MAX('opportunities'[CreatedDate])>=mindate,1,BLANK())
Please find the pbix as attached.
Regards,
Frank
v-frfei-msft
Community Support
7 years agoHi ushah763 ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank