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.
Hello All , Kindly i need to have yesterday date for last year based on slected month from Dim_Date slicer
So as an example
if i chosed May 2023 yesterday will be 2022-06-05
if i chosed April 2023 yesterday will be 2022-04-05
Solved! Go to Solution.
Hi @AhmedHassan
Please try
Yesterday Date =
VAR SelectedDate =
MAX ( Dim_Date[Date] )
VAR TodayDate =
TODAY ()
RETURN
DATE ( YEAR ( SelectedDate ) - 1, MONTH ( SelectedDate ), DAY ( TodayDate ) - 1 )
Hi @AhmedHassan
Please try
Yesterday Date =
VAR SelectedDate =
MAX ( Dim_Date[Date] )
VAR TodayDate =
TODAY ()
RETURN
DATE ( YEAR ( SelectedDate ) - 1, MONTH ( SelectedDate ), DAY ( TodayDate ) - 1 )
Hello @tamerj1
you saved my day , cannot thank you enough. many thanks and much appreciated
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
11 | |
11 |