DAX to Query editor
-
DAX to Query editor
Posted by DSC Communities on October 15, 2020 at 3:33 am-
Escher Oz
MemberOctober 15, 2020 at 3:33 AM
Hi,I’m trying to create in Query editor this M:Ā
Planned Fix Version = if(customfieldvalue[CUSTOMFIELD]=10211, RELATED(‘version'[vname]))I tried to do it with creating an index column and then with this expression: version[Planned Fix Version]{[Index1]}
but I received an errorssomeone have an idea?Ā
——————————
Escher
—————————— -
Ben Howard
MemberOctober 15, 2020 at 3:49 AM
Hi Escher,Ā Power Query does not use DAX, it uses M.Ā Importantly M can only reference the current table.ĀCan you be more specific about the problem you are trying to solve, it may be achievable in DAX in the Power BI Desktop.Ā Please be sure to include so images of the model and the relevant data.
——————————
Ben Howard
United Kingdom
——————————
——————————————- -
Escher Oz
MemberOctober 15, 2020 at 4:22 AM
Thank you Ben for your quick response,Ā
I fixed my mistake.My data base based on Jira schema, unique ID from one table connected to the data in another table.
in this case the M in above solve the issue, it is bring the data from table ‘version’ to this table based on the coded information in ‘10211’Ā
but I want to do the same in Power Query, since I need to group the records to one line and one of the column is “Planned Fix Version”Escher
——————————
Escher oz.escher@gmail.com
3470105
——————————
——————————————- -
Ben Howard
MemberOctober 15, 2020 at 5:30 AM
Hi Escher, thanks for the update.Ā I too have worked on Jira with Power BI and feel your pain with the random table structure they seem to employ!Ā Good luck——————————
Ben Howard
United Kingdom
——————————
——————————————- -
Escher Oz
MemberOctober 15, 2020 at 8:38 AM
Thank you BenDo you have any idea how to solve thus issue?
Escher
——————————
Escher oz.escher@gmail.com
3470105
——————————
——————————————- -
Ben Howard
MemberOctober 15, 2020 at 8:46 AM
I thought you said you fixed it?——————————
Ben Howard
United Kingdom
——————————
——————————————- -
Escher Oz
MemberOctober 15, 2020 at 9:17 AM
Sorry for miss understanding…
I have a solution with M
I don’t know how to solve it with Power Query since I need to do more manipulation on the data like grouping…
do you have any idea?
Regards,
Escher——————————
Escher oz.escher@gmail.com
3470105
——————————
——————————————- -
Ben Howard
MemberOctober 15, 2020 at 9:27 AM
I’m sorry, I am still miss understanding…Ā Ā M is the code you write in Power Query, so if you have a soln in M, you already have the soln in Power Query??——————————
Ben Howard
United Kingdom
——————————
——————————————- -
Escher Oz
MemberOctober 15, 2020 at 9:59 AM
Sorry if I made some mistakes
the column added from this viewĀ
——————————
Escher oz.escher@gmail.com
3470105
——————————
——————————————- -
Ben Howard
MemberOctober 15, 2020 at 10:12 AM
Hi Escher,As per my original post, “Importantly M can only reference the current table”.Ā You could merge the tables together in Power Query and that would give you access to the data, but it might be very expensive in terms of data size and computing power.Ā
——————————
Ben Howard
United Kingdom
——————————
——————————————-
DSC Communities replied 4 years, 10 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘DAX to Query editor’ is closed to new replies.