The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all,
I have an error with below sample data to convert a text column (Period) to a date format (Date period).
Period | Date period |
004.2021 | 01.04.2021 |
005.2021 | 01.05.2021 |
006.2021 | 01.06.2021 |
The Date Period I retrieved via following formula :
Date Period = CONCATENATE("01.";right('DataFile'[Period];7))
Solved! Go to Solution.
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
thanks Greg, it works! 🙂
User | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
62 | |
53 | |
51 |