Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
in power query, i didn't find how to do this.
I've a tableA from excel like this:
given a Date e.g. 1980/01/15 I'd like to retrieve the value in the table - from the year (so i select the row in the table) and the month (so i select the column) of the Date. the retrieved value should be put in a new column of another table
I've tried something like this: = Table.AddColumn (#"PreviousTable", "NewColumn", Record.Field(Table.SelectRows(#"tableA", each [Anno] = YEAR[DATE]){0}, MONTH[Date]))
but does not work
thanks for your help
Francesco
Solved! Go to Solution.
hello, @ffiore , try
Record.FieldValues(
Table.SelectRows(
#"tableA",
each [Anno] = YEAR[DATE]
){0}
){MONTH[Date]}
ok: Record.FieldValues helped me a lot.
(Date.Year and Date.Month are those in Power Query)
@AlienSx many thanks
hello, @ffiore , try
Record.FieldValues(
Table.SelectRows(
#"tableA",
each [Anno] = YEAR[DATE]
){0}
){MONTH[Date]}
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |