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.
Any one can help why I am getting this error message:
Expression.Error: We cannot apply field access to the type Number.
Details:
Value=1.387
Key=FY2023-CIF
When I use this transformation:
= Table.TransformColumns( #"Replaced Value", { { "FY2023-Jan", each [#"FY2023-CIF"] } } )
I want to replace the values in "FY-2023-Jan" column with those in "FY2023-CIF" column
Solved! Go to Solution.
Hi @AhmadBakr
Table.TransformColumns only passes the value in the column being transformed as an argument to the function provided in the 2nd argument. This means that it cannot reference values in columns other than the one being transformed.
However, you can use Table.ReplaceValue like this:
= Table.ReplaceValue(#"Replaced Value", each [#"FY2023-Jan"], (_) as number => [#"FY2023-CIF"], Replacer.ReplaceValue, {"FY2023-Jan"})
See here.
Does this work for you?
Regards
@OwenAuger thank you very much for the info and the workaround.
Pardon my late response, I have been extremly overloaded and working late nights. This is the first time I log into the forum since I posted the question.
Hi @AhmadBakr
Table.TransformColumns only passes the value in the column being transformed as an argument to the function provided in the 2nd argument. This means that it cannot reference values in columns other than the one being transformed.
However, you can use Table.ReplaceValue like this:
= Table.ReplaceValue(#"Replaced Value", each [#"FY2023-Jan"], (_) as number => [#"FY2023-CIF"], Replacer.ReplaceValue, {"FY2023-Jan"})
See here.
Does this work for you?
Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |