Forum Discussion
GilbertQ
Super User
9 years agoGet LastNonBlank Value across all rows
Hi there I wonder if someone could help me out. If you can refer to the image below. What I want is the Value from the ZCALC Rowz (30/06/2019) to be repeated. As is shown the the exampl...
- 9 years ago
Hi tringuyenminh92 I managed to figure it out
Here is the code that I used to return to me the values selected from the Fiscal Year Slicer
ZCALC ROwz2 =
CALCULATE (
CALCULATE ( COUNTROWS ( 'TYOY' ), ALLSELECTED ( 'Date'[Fiscal Year] ) ),
ALLSELECTED ( 'Date' )
)
tringuyenminh92
Memorable Member
9 years agoIt's good to hear that. Another way to get current selected in slicer is using FirstNonBlank( Values( filter column),1)
GilbertQ
Super User
9 years agoThat does work, but when you have all your dates in the table, it shows all the dates in their row context. So whilst that would work if there was no Fiscal Year in the rows, in my dataset there was. So for each row the FirstNonBlank Date in the row context is the Fiscal Year.