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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors