Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I have a table visual with 4 columns
I would like to compare column A with column C and see if on the same row A+C match.
If not highlight it or filter it out
Regards
Heinrich
Solved! Go to Solution.
To compare two columns (Column A and Column C) within the same row and highlight the differences or filter out the rows where they don't match in Power BI, you can follow these steps:
Create a New Calculated Column: Start by creating a calculated column that checks whether Column A matches Column C for each row. If they match, it will return a specific value (e.g., "Match"), and if they don't match, it will return a different value (e.g., "No Match").
In Power BI Desktop, go to the "Model" view, select your table, and create a new calculated column with the following DAX formula:
MatchStatus = IF([Column A] = [Column C], "Match", "No Match")
This formula compares the values in Column A and Column C and assigns "Match" or "No Match" accordingly.
Apply Conditional Formatting: Next, you can apply conditional formatting to visually highlight the differences in your table visual. Here's how you can do it:
This will highlight the rows where Column A and Column C do not match based on your conditional formatting settings.
(Optional) Filter Rows: If you also want to filter out the rows where Column A and Column C do not match, you can create a visual-level filter. Here's how:
Now, when you interact with the filter, it will hide the rows where there is no match between Column A and Column C, and your table visual will show only the matching rows with conditional formatting to highlight the differences.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
done allready
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hello Post Prodigy
Thank you very much.
Take care and have a great day
JFM_12
Hello
Thank you
But the column A is inother table as column C
Is it possible to compare the A and C in 2 tables
Regards
Heinrich
You can do it with a measure and conditional formatting. Create a measure such as Diff = IF([Column A] <> [Column C], 1, 0). Then use conditional formatting in the format section if the visualizations pane to highlight.
If this solved it, please mark it as the answer.
To compare two columns (Column A and Column C) within the same row and highlight the differences or filter out the rows where they don't match in Power BI, you can follow these steps:
Create a New Calculated Column: Start by creating a calculated column that checks whether Column A matches Column C for each row. If they match, it will return a specific value (e.g., "Match"), and if they don't match, it will return a different value (e.g., "No Match").
In Power BI Desktop, go to the "Model" view, select your table, and create a new calculated column with the following DAX formula:
MatchStatus = IF([Column A] = [Column C], "Match", "No Match")
This formula compares the values in Column A and Column C and assigns "Match" or "No Match" accordingly.
Apply Conditional Formatting: Next, you can apply conditional formatting to visually highlight the differences in your table visual. Here's how you can do it:
This will highlight the rows where Column A and Column C do not match based on your conditional formatting settings.
(Optional) Filter Rows: If you also want to filter out the rows where Column A and Column C do not match, you can create a visual-level filter. Here's how:
Now, when you interact with the filter, it will hide the rows where there is no match between Column A and Column C, and your table visual will show only the matching rows with conditional formatting to highlight the differences.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
74 | |
66 |
User | Count |
---|---|
120 | |
105 | |
99 | |
81 | |
72 |