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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Syndicate_Admin
Administrator
Administrator

How to add a dynamic column that adds the times a value appears?

Hello I have a problem!

I have a base that contains a mail variable and I need that as the mail is repeated, the variable tells me what number of repeats it is, for example:

amaurydata100ti_0-1668537140458.png

Either with DAX and with Query Transform. Thank you very much forum!

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @Syndicate_Admin , try this:

 

- Insert a column Index in Power Query

- Create a this calculate column:

Vez repetida = 
CALCULATE (
    COUNT (Tabla[Correo] ),
    FILTER (
        ALL(Tabla),
        Tabla[Índice]<= EARLIER ( Tabla[Índice])
            && Tabla[Correo]= EARLIER ( Tabla[Correo])
    )
)

 

- The result:

Bifinity_75_0-1668545698720.png

 

Best regards

View solution in original post

2 REPLIES 2
Bifinity_75
Solution Sage
Solution Sage

Hi @Syndicate_Admin , try this:

 

- Insert a column Index in Power Query

- Create a this calculate column:

Vez repetida = 
CALCULATE (
    COUNT (Tabla[Correo] ),
    FILTER (
        ALL(Tabla),
        Tabla[Índice]<= EARLIER ( Tabla[Índice])
            && Tabla[Correo]= EARLIER ( Tabla[Correo])
    )
)

 

- The result:

Bifinity_75_0-1668545698720.png

 

Best regards

Thank you very much brother!!! Do not invent had stuck for a long time, it worked perfectly, only instead of sorting by Index I did it with a date 🙂 variable Greetings!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.