Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I am trying to have the default date of the slicer to latest date of the column and it should have option to select different date later if user wants. The data of the column changes everyday & adds latest dates. I am struck. Can you please help?
Solved! Go to Solution.
@Anonymous So, it sounds like you want this:
Column = IF([Date]=TODAY(),"Today",[Date]&"")
Then you would need to set the slicer to "Today" and save the report. Now Today will always be the default in the report and what rows are "Today" will change over time as the data is refreshed.
Hi @Anonymous,
I think Greg_Deckler 's format should suitable for your requirement.
I modify his formula to compare with the last date form your table and marked it as 'last'. You can use this as the source of slicer, The '.last' option will be fixed on the top of the slicer lists and recalculated when your table records changes.
Marked =
IF ( [date] = MAXX ( ALL ( Table ), [date] ), ".Last", [date] & "" )
Regards,
Xiaoxin Sheng
@Anonymous You can use a relative date slicer or create a column that identifies "current" and "other" and add add a slicer for that.
@Greg_Deckler Thanks for the reply. I am looking for single selection slicer & default date.
@Anonymous So, it sounds like you want this:
Column = IF([Date]=TODAY(),"Today",[Date]&"")
Then you would need to set the slicer to "Today" and save the report. Now Today will always be the default in the report and what rows are "Today" will change over time as the data is refreshed.
@Anonymous , You have no option to do that, You can create a column like this and use that in filter
Date Type =
SWITCH(TRUE(),
'Date'[Date] = TODAY(), "Today",
'Date'[Date] = TODAY() -1 , "Yesterday",
[Date]& "")
@amitchandak Thanks! I can create a column but it will not be defaulted to latest.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
116 | |
83 | |
48 | |
38 | |
28 |
User | Count |
---|---|
188 | |
76 | |
73 | |
54 | |
45 |