Forum Discussion
Renaming Field-Parameter issue
- 3 years ago
I does look like a bug, I agree.
BTW I wasn't trying to imply that a calculated column is "better" (normally it is advisable to avoid calculated columns where possible, so writing the code into the table constructor is probably better). I was suggesting an alternative way to include the columns as per the original poster's needs seeing as changing the column name wasn't working.
When I created the field-parameter "#Parameters-Dimensions" , an automared DAX was created as you can see below (colors red and black).
So each time I needed a new column I was manually writing in this DAX (colours orange, green, blue).
A few weeks ago I could rename column #3 & #4 (from Value3 to Order & from Value4 to Category), but now I face the issue i described above.
PS. Unfortunately , values in column #5 have to be imported manually. Your example could work perfect for my case if there was a logic behind. (the screenshot shows only a few of the rows. Column #5 has multiple values, not only 0,1)
I'm getting the same behaviour: it won't let me rename the columns.
I can create a new column once loaded for Category as follows:
Can't you use the SWITCH function and reference the Parameter[Order] field to assign the values? Or use a different DAX expression to return the values?
After all you are assigning them manually with the table constructor { }
- thomasblt3 years agoFrequent Visitor
Yes, this could be a workaround in my case.
However, it seems to be a bug of the new version of Power BI. I tried to download a previous one (September's version) and it worked.
Thanks again for your help! 🙂