top of page
Search

𝐏𝐨𝐰𝐞𝐫 𝐁𝐈 𝐚𝐧𝐝 𝐄𝐱𝐜𝐞𝐥 - 𝐃𝐚𝐭𝐞 𝐓𝐢𝐩 - 23 Feb 2022

𝐅𝐢𝐧𝐝𝐢𝐧𝐠 𝐃𝐚𝐭𝐞 𝐟𝐫𝐨𝐦 𝐃𝐚𝐲 𝐨𝐟 𝐭𝐡𝐞 𝐘𝐞𝐚𝐫 𝐢𝐧 𝐄𝐱𝐜𝐞𝐥 𝐰𝐢𝐭𝐡 𝐅𝐨𝐫𝐦𝐮𝐥𝐚 & 𝐢𝐧 𝐏𝐨𝐰𝐞𝐫 𝐁𝐈 𝐮𝐬𝐢𝐧𝐠 𝐃𝐀𝐗

Imagine you have only Day of the Year in your Data and out of that if you wish to create

a complete Date, then this formula is useful !!


Excel - Add 54 in Cell A2 ( Why 54 , this is the Day of year on 23 Feb 2022)

in Cell B2 use this formula

𝐃𝐀𝐓𝐄(𝐘𝐄𝐀𝐑(𝐓𝐎𝐃𝐀𝐘()),𝐌𝐎𝐍𝐓𝐇(𝐓𝐎𝐃𝐀𝐘())-𝟏,𝐀𝟐)

You will get the result as Today's Date


Power BI - Create a New Column and the DAX will be

(Lets assume the name of the existing Column containing Day of Year is [Day of Year])

𝐑𝐞𝐪𝐮𝐢𝐫𝐞𝐝 𝐃𝐚𝐭𝐞 = 𝐃𝐀𝐓𝐄(𝐘𝐄𝐀𝐑(𝐓𝐎𝐃𝐀𝐘()),𝐌𝐎𝐍𝐓𝐇(𝐓𝐎𝐃𝐀𝐘())-𝟏, [𝐃𝐚𝐲 𝐨𝐟 𝐘𝐞𝐚𝐫])

the new calculated column Shows respective Date

5 views0 comments

Recent Posts

See All

Understanding Calculation Groups (CG) in Power BI

Understanding Calculation Groups (CG) in Power BI is a valuable skill that can help you reduce the number of measures you need to create. However, there are two things you should note when using CGs.

CURRENTMONTH( ) FUNCTION in EXCEL?

The CurrentMonth function in Excel!? This custom function using LAMBDA will a quick help to get summary. Stay tuned for a full tutorial and even an Excel file to follow along with. #excel #lambda http

bottom of page