The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |