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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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