This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I need some help.
I have 2 tables with different classifications as shown.
I created 2 cards using measures. My aim is to show the values on the cards if the classifications are the same if not then the cards will show "No Match".
Thanks...tksnota
Solved! Go to Solution.
Hi @Anonymous
It's atough requirmeent. But I'll give try
--> First, create a calculated table that combines the two tables and checks for matching classifications
MatchedClassification =
ADDCOLUMNS(CROSSJOIN('Table1', 'Table2'),
"Match", IF('Table1'[Classification] = 'Table2'[Classification], "Match", "No Match"))
--> Create measures to display the values based on the match condition for the both cards sepeartely
Card-1
Card1Value =
IF(HASONEVALUE('MatchedClassification'[Match]) && VALUES('MatchedClassification'[Match]) = "Match",[PercentageClassification], "No Match")Card-2
Card2value = IF( HASONEVALUE('MatchedClassifications'[Match]) && VALUES('MatchedClassifications'[Match]) = "Match",[Margin Classification], "No Match"
)
Use the above measures and let me know if it works.
Hi @Anonymous ,
How is the situation now? If you want to compare the two column values and display the matching values in the card, you can refer to the following method.
Create a new table contains all matching values.
MatchTable = INTERSECT(ALL('Table'[Column1]),ALL('Table (2)'[Column1]))
Create a measure shows all matching values on a card.
Measure = IF(ISEMPTY('MatchTable'),"NoMatch",CONCATENATEX(MatchTable,MatchTable[Column1]&" "))
Best regards,
Mengmeng Li
Hi @Anonymous
It's atough requirmeent. But I'll give try
--> First, create a calculated table that combines the two tables and checks for matching classifications
MatchedClassification =
ADDCOLUMNS(CROSSJOIN('Table1', 'Table2'),
"Match", IF('Table1'[Classification] = 'Table2'[Classification], "Match", "No Match"))
--> Create measures to display the values based on the match condition for the both cards sepeartely
Card-1
Card1Value =
IF(HASONEVALUE('MatchedClassification'[Match]) && VALUES('MatchedClassification'[Match]) = "Match",[PercentageClassification], "No Match")Card-2
Card2value = IF( HASONEVALUE('MatchedClassifications'[Match]) && VALUES('MatchedClassifications'[Match]) = "Match",[Margin Classification], "No Match"
)
Use the above measures and let me know if it works.
Hi,
Do you mean append 2 tables then take out the duplicats?
Thanks...tksnota
yes
Create Calculated Table Showing Values From Measure
That's not something you can meaningfully do in Power BI.
What are you trying to achieve?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |