Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Matrix to present a specific time period

Hello,

 

Using matrix I built the following visualisation.
Header two data fileds from Calendar Table (Year Quarter Name and Month Short Name)

Based on that I would like to mark the final date of the process, so I used following measure:

IF ( MIN ( dimSource[Final Date] ), 1 , 0 )

but the problem is that the Calendar Table is build from YEAR ( MIN ( dimSource[Final Date] ) ) to YEAR ( MAX( dimSource[Final Date] ) ), so at above visual I have everything from Q2 2023, but I would like to see only the values related to currently being used filter context. I think that I should somehow modify above measure IF ( MIN ( dimSource[Final Date] ), 1 , 0 ) and replace this 0 with some additional condition, but I dont know how.
I determined the timeframe that should be on the graph based on the 

CALCULATE ( MIN( dimSource[Final Date] ), ALLEXCEPT( dimSource, dimSource[Button Label] ) )
CALCULATE ( MAX ( dimSource[Final Date] ), ALLEXCEPT( dimSource, dimSource[Button Label] ) )

and would like to see all of the Q and Months between these two dates.

 

Thank you in advance,

1 Reply