Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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.

yadhamurir_0-1668529933279.png

yadhamurir_1-1668530113213.png

* 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.

yadhamurir_2-1668530296782.png

Please find the below link for sample data.

Link :-  https://docs.google.com/spreadsheets/d/1tV1Hr__XsPWi-fi1Vfgi9SVfiE9HT3Td/edit?usp=share_lin... 

 

@PaulDBrown 

@amitchandak@Greg_Deckler , @Jihwan_Kim @lbendlin 

@johnt75 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super 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

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community 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.

vyueyunzhmsft_0-1668566514422.png

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:

vyueyunzhmsft_1-1668566634533.png

 

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

 

amitchandak
Super User
Super 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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.