Forum Discussion
Geek
3 years agoFrequent Visitor
How to get a dynamic calculated column according selected value
Here is the thing i need : First, i have facts table that is called factsProjectFollowUp and time table that is called dimTime, so there is one line for each date between two date. The facts tabl...
Anonymous
3 years agoNot applicable
Hi Geek ,
I suggest you to create a measure to get dynamic result.
My Sample:
Data model:
Measure:
Dynamic Status =
VAR _RANGESTART =
MIN ( DimDate[Date] )
VAR _RANGEEND =
MAX ( DimDate[Date] )
VAR _STARTDATE =
SELECTEDVALUE ( 'Table'[Start Date] )
VAR _ENDDATE =
SELECTEDVALUE ( 'Table'[End Date] )
RETURN
IF (
_STARTDATE > _RANGEEND,
"Not Start",
IF (
_STARTDATE <= _RANGEEND
&& _ENDDATE >= _RANGEEND,
"In Progress",
"Completed"
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Geek3 years agoFrequent Visitor
Hi there,
Thank you so much for answer, but unfortunately on my side it duplicates ID for many dates instead of it to be on one line