Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I took a date in a Database with the year 18,19,20,21,22 and
i load it but it came as decimal but when i try to convert these to Date it comes out as 1900.
and i don't know how to get the right date.
Here is the date but it is in decimal number but when i try to change it to date format it is giving me something else as shown below;
Thanks in Advance
Solved! Go to Solution.
Hi @Gaucho ,
Please try below steps:
1. below is my test table
Table:
2. add a new column with below dax formula
Agjust Year =
VAR _val = INT ( "20" & [Year] ) RETURN DATE ( _val, 1, 1 )
3. set the format in Power BI Desktop
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Gaucho ,
Please try below steps:
1. below is my test table
Table:
2. add a new column with below dax formula
Agjust Year =
VAR _val = INT ( "20" & [Year] ) RETURN DATE ( _val, 1, 1 )
3. set the format in Power BI Desktop
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-binbinyu-msft is there a possibility to have the date with the Month included(i.e MM:JJJJ) or in this format (DD:MM:JJJJ). Thanks in advance
It is working. Thank you very much
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |