Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I am new to Power BI, and I am stuck on the best way to solve an issue. The requirement is to populate multiple columns based multiple criteria from multi-rowed data. I was able to get the conditional column set up correctly, but I would like the rows to populate on all rows based on that ID.
ID | Criteria 1 | Critera 2 | Success |
001 | Meets | Does not meet | Yes |
001 | Does not meet | Does not meet | No |
002 | Does not meet | Doest not meet | No |
I would like to be able to see success = yes for all rows for any time there is a success based on any subsequent rows. What is the best way to accomplish this within Power Query? I was able to get this to work on the report layer by adding in a column that concatenated the values, and another that checked that column for data, but I would like a better way since there will be multiple "success" columns.
Thanks in advance!
Solved! Go to Solution.
Hi,
Is it ok to have a calculated column instead of using Power Query (since this is in the DAX forum)? Perhaps this can work?
Success =
VAR _rowId = 'Table'[ID]
RETURN
IF (
CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 1]; "Meets" )
|| CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 2]; "Meets" );
"Yes";
"No"
)
Best Regards // Ulf
Hi,
Is it ok to have a calculated column instead of using Power Query (since this is in the DAX forum)? Perhaps this can work?
Success =
VAR _rowId = 'Table'[ID]
RETURN
IF (
CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 1]; "Meets" )
|| CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 2]; "Meets" );
"Yes";
"No"
)
Best Regards // Ulf
Yes, this is much cleaner than what I was doing. I could also use this to have the full logic in here. Thanks for the help!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |