Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm looking to format the POWER QUERY table by group instead of by row. My Code references are sorted in the query, how can I apply a new column like the example below?
| Code | Group |
| ABC123 | 1 |
| ABC126 | 0 |
| FFR556 | 1 |
| KKI998 | 0 |
| WWA324 | 1 |
Solved! Go to Solution.
Hi, how many codes you have, is there any logic in assigning group 1 or group 0? Conditional column will help you to create this column,
if it is 1 for the first row then 2 for the second 1 for the 3rd, 2 for the 4th then
add index column first then custom column
if (Number.IsEven([Index])=true) then 0 else 1
Appreaciate your kudos and acceptance of the solution if it works for you.
if index column and custom column
if (Number.IsEven([Index])=true) then 0 else 1
is not an option, then please identify the logic based on which you want to assign group 1 group 0?
if index column and custom column
if (Number.IsEven([Index])=true) then 0 else 1
is not an option, then please identify the logic based on which you want to assign group 1 group 0?
Hi, how many codes you have, is there any logic in assigning group 1 or group 0? Conditional column will help you to create this column,
if it is 1 for the first row then 2 for the second 1 for the 3rd, 2 for the 4th then
add index column first then custom column
if (Number.IsEven([Index])=true) then 0 else 1
Appreaciate your kudos and acceptance of the solution if it works for you.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |