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 create a new column or even a new table that looks at criteria in two columns. The new column needs to look at the "Project Regulatory Code" and look at whether all projects for each regulatory code group are Complete and return Complete or In Progress if they are not. I can't seem to figure out how to accomplish this. TIA!
Solved! Go to Solution.
you can try this
Column = if(countx(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])),'Table'[Regular Phase])=COUNTX(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])&&'Table'[Status]="Complete"),'Table'[Regular Phase]),"Complete","In progress")
pls see the attachment below
Proud to be a Super User!
Hi @kpeterson
There are my steps in PQ to achieve a goal
1. I duplicated the table
2. Removed from the new table all columns except for code and status :
3 Grouped the code by statuses and counted distinct rows
4. Merged this new table with the original:
6. created a conditional column that checks how many distinct statuses have code and if it is "complete"
7. removed unnecessary column of counting and switched off the loading to the model the table that i created for grouping
Result
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Thank you for your reply and this worked really well. Thanks!
Thank you for your reply. After some QC, I also need to add a line for "if all Not Started" then Not Started. Is that possible to add? TIA!
Hi @kpeterson
There are my steps in PQ to achieve a goal
1. I duplicated the table
2. Removed from the new table all columns except for code and status :
3 Grouped the code by statuses and counted distinct rows
4. Merged this new table with the original:
6. created a conditional column that checks how many distinct statuses have code and if it is "complete"
7. removed unnecessary column of counting and switched off the loading to the model the table that i created for grouping
Result
pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
you can try this
Column = if(countx(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])),'Table'[Regular Phase])=COUNTX(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])&&'Table'[Status]="Complete"),'Table'[Regular Phase]),"Complete","In progress")
pls see the attachment below
Proud to be a Super User!
Thank you for your reply. After some QC, I also need to add a line for "if all Not Started" then Not Started. Is that possible to add? TIA!
pls try this
Column = if(countx(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])),'Table'[Regular Phase])=COUNTX(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])&&'Table'[Status]="Not Started"),'Table'[Regular Phase]),"Not Started",if(countx(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])),'Table'[Regular Phase])=COUNTX(FILTER('Table','Table'[Regular Phase]=EARLIER('Table'[Regular Phase])&&'Table'[Status]="Complete"),'Table'[Regular Phase]),"Complete","In progress"))
Proud to be a Super User!
Thank you for your reply and this worked really well. Thanks!
you are welcome
Proud to be a Super User!
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.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |