Forum Discussion
Date slicer values in Table title
- 5 years ago
Hi PBInewbie21 ,
Create a measure as below:
Measure = var _mindate=MINX(ALLSELECTED('Date'),'Date'[Date]) var _maxdate=MAXX(ALLSELECTED('Date'),'Date'[Date]) Return "Orders from"&_mindate&" to "&_maxdateThen click the table visual>format>title:on>format:
Finally you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Thanks Anonymous for your reply.
I do not have Start date and End date columns in my Order table. It only has Name, Order Date and Qty columns.
Also, I want to grab values from Date range boxes, Is it possible? Attaching the image for clearity.
So, I want to see Table Title 'Orders from 1/1/2020 to 6/16/2020'
with amitchandak 's syntax it shows Orders from 1/1/2020 to 5/1/2020 as there are no more records after 5/1/2020 in Orders table. Any idea?
Hi PBInewbie21 ,
Create a measure as below:
Measure =
var _mindate=MINX(ALLSELECTED('Date'),'Date'[Date])
var _maxdate=MAXX(ALLSELECTED('Date'),'Date'[Date])
Return
"Orders from"&_mindate&" to "&_maxdate
Then click the table visual>format>title:on>format:
Finally you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
- PBInewbie215 years ago
Helper II
Hi v-kelly-msft ,
Thanks for attaching all the screenshots and .pbix file too. Helps the newbie like me. Looks like all of the above replies would help if my date table had rows for every single day.
Noticed that my Date table has some rows missing and that's why it pickes date value from Order table.