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 have 3 columns in my dataset that represent Year, Month and Day. They are call Y, M, D respectice and are all text values. Trying to create a custome column that return a date from these. Tried Date.From(#date([Y],[M],[D])) but getting an error.
= Table.AddColumn(Source, "date", each Date.From(Text.Combine(Record.ToList(_), "/")))
= Table.AddColumn(Source, "Date", each #date(Number.From([Y]),Number.From([M]),Number.From([D])))
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi @judddonnelly
Create this Calculated column:
Date= DATE(YEAR(Y), MONTH(M), DAY(D))
Mark it as a solution if it answers your question.
Thanks!
Not in the power query.
Create a calculated column...in your table in the data view.
Write the DAX for the column.
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |