Forum Discussion
Issue with Matrix header dates
Hi Everyone,
I was hoping someone could help me with a part of the formula to get me to my end goal.
Issue:- Im facing issue with Matrix header dates. FYI,Please find the below attached figure. I selected exported date is 10/21/2022, my matrix header shows data starting from 10/17/2022. I dont want that.
* Requirement:- My requirement is, when im selecting exported date as 10/21/2022 then my matrix header dates started from 10/21/2022 onwards.FYI, Please find the below attached figure.
Please find the below link for sample data.
@amitchandak, @Greg_Deckler , @Jihwan_Kim @lbendlin
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
2 Replies
- amitchandakSuper User
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
- v-yueyunzh-msftCommunity Support
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