Forum Discussion
Anonymous
6 years agoNot applicable
Measure and Calculation column not working properly
I have two calculated columns(TimeFrameDateRangeCol1) one is a measure (TimeFrameDateRange1 ) other is a calculation
TimeFrameDateRange1 =
IF( NOT( ISBLANK(vw_patientListNew[MinselectedDateRange1]) && ISBLANK(vw_patientListNew[MaxselectedDateRange1])),
vw_patientListNew[MinselectedDateRange1] &"-"& vw_patientListNew[MaxselectedDateRange1],Blank())
TimeFrameDateRangeCol1 =
IF(isblank([TimeFrameDateRange1]),"blank","Not")
as you can see TimeFrameDateRangeCol1 condition is failing. Can you please let me know i i am doing wrong
3 Replies
- AntrikshSharma
Community Champion
You are using measure in a calculated column, which triggers context transition and then each row of that table filters the measure, so it looks like the measure is never evaluated to be blank. Don't use a measure in a calculated column unless you have working knowledge of context transition.
Read this article: https://www.sqlbi.com/articles/understanding-context-transition/ - amitchandak
Super User
Anonymous , seem like you are trying to pass the parameters to a column, that is not possible. You can have a measure equivalent of that column by pushing row context
refer
- AnonymousNot applicable
I removed the measure in the column and still there is issues:
as you can see the slicer1 is between 01/01/1989 and 7/26/1990. In TimeFrameDateRangeCol1 i want 1 for exists and blank for dont exists.
DateFilterRange = IF(MAX(vw_patientListNew[StatusDate]) in UNION(VALUES(DateRange1[Date]),VALUES(DateRange2[Date]),VALUES(DateRange3[Date])),1)TimeFrameDateRangeCol1 = IF(MAX(vw_patientListNew[StatusDate]) in VALUES(DateRange1[Date]),1)