Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
lmcpinto
Frequent Visitor

Calculated column

Hello everyone, I have a doubt.

I need the following, if column 3 has event "Envio de Comunicação", then in column Is Comunicação, it should appear "Envio de Comunicação" for all the ids that have the event happening.

 

For example, id 1 should have "Envio de Comunicação" in both rows instead of only having when column 3 is "Envio de Comunicação". Once the event happens, all the corresponding ids should have "Envio ..." Or " Não envio...:"

 

Thank you in advance!

lmcpinto_0-1669031019667.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lmcpinto ,

 

You can create a calculated column by below code.

Is Comunicação =
VAR _LIST =
    CALCULATETABLE (
        VALUES ( 'Table'[Column3] ),
        ALLEXCEPT ( 'Table', 'Table'[Column1] )
    )
RETURN
    IF (
        "Envio de Comunicação" IN _LIST,
        "Envio de Comunicação",
        " Não Envio de Comunicação"
    )

Result is as below.

RicoZhou_0-1669098738184.png

 

Best Regards,
Rico Zhou

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @lmcpinto ,

 

You can create a calculated column by below code.

Is Comunicação =
VAR _LIST =
    CALCULATETABLE (
        VALUES ( 'Table'[Column3] ),
        ALLEXCEPT ( 'Table', 'Table'[Column1] )
    )
RETURN
    IF (
        "Envio de Comunicação" IN _LIST,
        "Envio de Comunicação",
        " Não Envio de Comunicação"
    )

Result is as below.

RicoZhou_0-1669098738184.png

 

Best Regards,
Rico Zhou

 

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

Thank you!!!!!

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.