Forum Discussion
mohammadyousaf
Resolver II
5 years agoTaking Blank Value from Date Column
Hi everyone, Can someone please help me to calculate the following from below table. 1. If Name Value is not selected, it should calculate from finish date and return "In Progress" because the...
- Anonymous5 years ago
Hi mohammadyousaf ,
Hope below is what you expected:
1. Create a rank measure:
Rank = VAR _last = RANKX ( ALLSELECTED ( 'Table' ), CALCULATE ( MAX ( ( 'Table'[Start Date] ) ) ), , ASC, DENSE ) RETURN IF ( MAX ( 'Table'[Finish Date] ) = BLANK (), MAXX ( ALLSELECTED ( 'Table' ), _last ) + 1, _last )2. A measure for Card visual:
Measure = VAR _lastFinish = CALCULATE ( MAX ( 'Table'[Finish Date] ), FILTER ( 'Table', [Rank] = MAXX ( ALL ( 'Table' ), [Rank] ) ) ) VAR _ifinprogress = IF ( _lastFinish = BLANK (), "In Progress", FORMAT ( _lastFinish, "m/dd/yyyy" ) ) RETURN IF ( ISFILTERED ( 'Table'[Name] ), IF ( MAX ( 'Table'[Finish Date] ) = BLANK (), "N/A", FORMAT ( MAX ( 'Table'[Finish Date] ), "m/dd/yyyy" ) ), _ifinprogress )Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mohammadyousaf
Resolver II
5 years agoYes last itme is defined agains the name column.
I am assuming system checks names, than check the dates, if all dates are present, pick the Max date, if not all dates are present agains the names, display "NA".
OR
I will have to do it for each page but below can also help me to resolve.
If row E in column name has blank finish date, Actual Completion should be "In Progress", else date.