Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am trying to solve a seemingly simple issue. I am trying to convert the following to a year.
1999/2000 to 2000.
1999/2000 (string)
My calculated column is this:
Power BI allows the DATEVALUE DAX formula with parameter as Text, which includes date value in MM/DD/YYYY format, so you need to add the below expression:
DateVal = DATEVALUE("01/01/" & RIGHT("1999/2000", 4))
Please refer to the below screenshot for the same.
Thanks!
Inogic
Innovative Logic
Blog: http://www.inogic.com/blog
twitter: @inogic
Date format needs the complete set of YYYY-MM-DD, but you only have YYYY. You can set it as text.
Thanks for the clarification.
I understand that you can't forecast with a basic line chart while the x-axis is text (i.e. the supposed year as you have described).
Could you please confirm?
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |