cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Anonymous
Not applicable

## Help: Realçar valores de células duplicadas no elemento tabela.

Então estou iniciando no mundo do PBI.

Tenho  o seguinte desafio ao qual não consegui superar.

é criar uma formatação condicional de valores duplicados nas céculas como no excel.

 Benício 20 Aristóteles 20 Alexandro 20 Aristóteles 20 Alexandro 20 Merlin 20 Fontana 20 Frota 20 Lobato 20 Damon 20 Damon
1 ACCEPTED SOLUTION
Community Support

Hi AlexJunio,

You could create a index column like below

```let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUTI0UIrVgTCNIMwyINMYwkxBiBYDmSYQZipCFMaMBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [name = _t, amount = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"name", type text}, {"amount", Int64.Type}}),
#"Grouped Rows" = Table.Group(#"Added Index", {"name"}, {{"all", each _, type table [name=text, amount=number, Index=number]}}),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"amount", "new index"}, {"Custom.amount", "Custom.new index"}),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"all"})
in
#"Removed Columns"```

Then  create measure like below

`Measure = IF(MIN('Table'[Custom.new index])<>1, 1,0)`

Use this measure in conditional format like below

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support

Hi AlexJunio,

You could create a index column like below

```let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUTI0UIrVgTCNIMwyINMYwkxBiBYDmSYQZipCFMaMBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [name = _t, amount = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"name", type text}, {"amount", Int64.Type}}),
#"Grouped Rows" = Table.Group(#"Added Index", {"name"}, {{"all", each _, type table [name=text, amount=number, Index=number]}}),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"amount", "new index"}, {"Custom.amount", "Custom.new index"}),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"all"})
in
#"Removed Columns"```

Then  create measure like below

`Measure = IF(MIN('Table'[Custom.new index])<>1, 1,0)`

Use this measure in conditional format like below

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors