Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
Please see attached screenshot.
I'd like to compare text from two different data sources and conditionally format to highlight where data does not match exactly.
I would prefer not to introduce an additional column.
How would I do this?
Solved! Go to Solution.
Hi @Camstr
You don't need to add a new column to the visual, you just need to use the measure on the conditional formatting of one of the tt columns or on both. Select the measure on the conditional formatting rules.and set the value equal to 1
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Camstr try the following code..
Registration check =IF( SELECTEDVALUE (Table[Registration Number 2]) <>BLANK() & & SELECTEDVALUE (Table[Registration Number 1]) <> SELECTEDVALUE (Table[Registration Number 2]), 1)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix if 'Registration Number 2' is blank then I do not want it to record a mismatch (i.e. 1). How would I edit the measure to ignore blanks? Thanks in advance.
Registration Check = IF(SELECTEDVALUE(Table[Registration Number 1]) <> SELECTEDVALUE(Table[Registration Number 2]), 1)
Hi @Camstr try the following code..
Registration check =IF( SELECTEDVALUE (Table[Registration Number 2]) <>BLANK() & & SELECTEDVALUE (Table[Registration Number 1]) <> SELECTEDVALUE (Table[Registration Number 2]), 1)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Camstr ,
Is the information stored in the same table or are you having the data in different tables? how is the information related?
If you have any kind of relationship between both of them and you are using it in a visual you can add a measure similar to this:
Registration Check = IF(SELECTEDVALUE(Table[Registration Number 1]) <> SELECTEDVALUE(Table[Registration Number 2]), 1)
Now add a condittional formatting rule were this measure equals 1 to get the background or text in a red or other colour.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi Miguel, that's awesome thank you!
The data is stored in different tables and is related through another common identifier.
Your solution works nicely, but it does mean an extra column in my table (for the measure).
I guess that is unavoidable in PBI for text?
Cam
Hi @Camstr
You don't need to add a new column to the visual, you just need to use the measure on the conditional formatting of one of the tt columns or on both. Select the measure on the conditional formatting rules.and set the value equal to 1
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsUser | Count |
---|---|
82 | |
72 | |
67 | |
47 | |
36 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |