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.
Hello Everyone!
I'm having this issue that I'm sure you can easily help me.
In one table I have a column with "Issue_ID" and other column with the text "No Plan" or "Plan".
I would like that if I have one Issue_ID with the word "Plan", the other same Issue_ID must say "Plan".
For example, all the Issue_IDs 17993 must say "Plan". And not like the picture bellow that for the "gestion" row says "No Plan" and for the "00-Planificado" says "Plan". In this case, both must say "Plan"
Solved! Go to Solution.
Sorry @speedramps , but my native language is Spanish, maybe for this I can't explain so well.
A friend of mine just gave me the solution. But in the same way I explain and put the solution.
This is the original table:
And, this is what I need:
Like the issue 13179 has in "ListaEtiquetas" column (In the original table was "Name" column) the word "Planificado", all the issues 13179 should say "Plan". But, the issues where they are not related to "Planificado" should say "No Plan". Like for example the issue 13120 it has "Desarrollo" and "Gestión" but there is no "Planificado" for that says "No Plan".
The solution was create a table and a list in Power Query.
We create a Group by for the column "Name" with this:
= Table.Group(#"Replaced Value", {"ISSUE_ID"}, {{"TablaEtiquetas", each _, type table [NAME=nullable text, ISSUE_ID=nullable number]}})
Then we add a column group and eliminated the issue column:
= Table.AddColumn(#"Grouped Rows", "Custom", each Table.RemoveColumns([TablaEtiquetas],{"ISSUE_ID"}))
Create the "ListaEtiquetas" column from the previous created column "Custom":
= Table.AddColumn(#"Added Custom", "ListaEtiquetas", each Table.ToList([Custom]))
Then we created the "PlanNoPlan" column that I needed:
= Table.AddColumn(#"Added Custom1", "PlanNoPlan", each if List.Contains([ListaEtiquetas],"Planificado") then "Plan" else "No Plan")
Hello @speedramps !!
Thanks for your help, but doesn't work correctly. Maybe I didn't explain well. This is the result using your DAX
There is missing data. The cases where the cell are empty are in which there are no relationship with "00-Planificado".
I wanted to create a new column starting from "Name" not from "PlanNoPlan".
This is the situation:
One issue can have several "Names" at the same time, in some cases one issue have the "Name" = 00-Planificado and in others not.
I wanted that for the cases when "Name" = 00-Planificado appears the others rows with the same issue_id have the value "Plan" and in the others "NoPlan"
Sorry I dont understand you, please translate to English
"I wanted that for the cases when "Name" = 00-Planificado appears the others rows with the same issue_id have the value "Plan" and in the others "NoPlan" does not make sense ☹️
I want to help but it wastes your time and my time if you dont describe your problems carefully.
Please provide example imput date (as table not a screen print)
and example output.
Clearly showing what you want.
Witj a bried but clear decsription of what you want.
Thank you 😁
Sorry @speedramps , but my native language is Spanish, maybe for this I can't explain so well.
A friend of mine just gave me the solution. But in the same way I explain and put the solution.
This is the original table:
And, this is what I need:
Like the issue 13179 has in "ListaEtiquetas" column (In the original table was "Name" column) the word "Planificado", all the issues 13179 should say "Plan". But, the issues where they are not related to "Planificado" should say "No Plan". Like for example the issue 13120 it has "Desarrollo" and "Gestión" but there is no "Planificado" for that says "No Plan".
The solution was create a table and a list in Power Query.
We create a Group by for the column "Name" with this:
= Table.Group(#"Replaced Value", {"ISSUE_ID"}, {{"TablaEtiquetas", each _, type table [NAME=nullable text, ISSUE_ID=nullable number]}})
Then we add a column group and eliminated the issue column:
= Table.AddColumn(#"Grouped Rows", "Custom", each Table.RemoveColumns([TablaEtiquetas],{"ISSUE_ID"}))
Create the "ListaEtiquetas" column from the previous created column "Custom":
= Table.AddColumn(#"Added Custom", "ListaEtiquetas", each Table.ToList([Custom]))
Then we created the "PlanNoPlan" column that I needed:
= Table.AddColumn(#"Added Custom1", "PlanNoPlan", each if List.Contains([ListaEtiquetas],"Planificado") then "Plan" else "No Plan")
Try this dax measure
Thanks for reaching out for help.
I have helped you, now please help me by giving kudos.
Remeber we are unpaid volunteers.
Click the thumbs up and accept as solution button.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
85 | |
49 | |
38 | |
28 |
User | Count |
---|---|
189 | |
76 | |
73 | |
54 | |
42 |