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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors