Forum Discussion
Issue with Matrix header dates
- 3 years ago
Anonymous , You can use after slicer
Or you can have date slicer of an independent date table and then have measure like
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] > _max))Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
Hi, Anonymous
For your need , you can use measure to replace the value in your Matrix.
My test is the same as you provided.
We can create a measure :
Measure = var _slicer = MAX('Exported'[Exported_Date])
var _current_date = SELECTEDVALUE('Sheet2'[Exported_Date])
return
IF(HASONEVALUE('Sheet2'[Exported_Date]),IF(_current_date>= _slicer ,SUM('Sheet2'[Ones]),BLANK()),SUM('Sheet2'[Ones]))
Then we can put the measure the field we need on the visual and we will meet your need:
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly