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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.