Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
hi,
if i have a date column & i wish to create another column that contains a converted value for yearmonthday as a whole number, kindly advise on how to do so.
for example, a date '12/08/2020' (i.e. 12th August, 2020) to be converted as 20200812 (yearmonthday) as a whole number type/format.
tks, -nik
Solved! Go to Solution.
Hi @Anonymous
YYYYMMDD_format = FORMAT('Table'[date],"YYYYMMDD")
Thank you @Greg_Deckler And then right click the column and change it to a Whole number.
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
@Anonymous - Just to add to @pranit828 you could then right-click the column and change it to a Whole number. FORMAT retuns a Text value.
@Anonymous ,
Try like
Whole Date = year([Date])*10000 + month([Date])*100 + Day([Date])
or
Whole Date = format([Date],"YYYYMMDD") // This will be the text you need to change data type to whole number
@Anonymous ,
Try like
Whole Date = year([Date])*10000 + month([Date])*100 + Day([Date])
or
Whole Date = format([Date],"YYYYMMDD") // This will be the text you need to change data type to whole number
Hi @Anonymous
YYYYMMDD_format = FORMAT('Table'[date],"YYYYMMDD")
Thank you @Greg_Deckler And then right click the column and change it to a Whole number.
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
@Anonymous - Just to add to @pranit828 you could then right-click the column and change it to a Whole number. FORMAT retuns a Text value.
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |