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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nicopato
New Member

Recurrencia de clientes

Tengo que contar la cantidad de veces que un cliente llamo mes a mes considerando las bonificaciones. Ejemplo, en caso de llamar el mes 5 y conseguir una bonificacion de dos meses, si llamara en el mes 7 se consideraria como consecutiva. 

 

Nicopato_0-1726262946152.png

Nicopato_1-1726263132185.png

espero puedan ayudarme

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Nicopato ,

I create a table as you mentioned.

vyilongmsft_0-1726451844771.png

Then I create a calculated column.

EffectiveEndMonth = 'Table'[CallMonth] + 'Table'[BonusMonths]

vyilongmsft_1-1726451983864.png

Next you can create a measure and you  can let it into a card or a Clustered column chart.

CallsWithBonus = 
VAR CurrentMonth = MAX('Table'[CallMonth])
RETURN
CALCULATE(
    COUNTROWS('Table'),
    FILTER(
        'Table',
        'Table'[CallMonth] <= CurrentMonth &&
        'Table'[EffectiveEndMonth] >= CurrentMonth
    )
)

vyilongmsft_2-1726452150385.pngvyilongmsft_3-1726452168832.png

 

 

 

Best Regards

Yilong 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 @Nicopato ,

I create a table as you mentioned.

vyilongmsft_0-1726451844771.png

Then I create a calculated column.

EffectiveEndMonth = 'Table'[CallMonth] + 'Table'[BonusMonths]

vyilongmsft_1-1726451983864.png

Next you can create a measure and you  can let it into a card or a Clustered column chart.

CallsWithBonus = 
VAR CurrentMonth = MAX('Table'[CallMonth])
RETURN
CALCULATE(
    COUNTROWS('Table'),
    FILTER(
        'Table',
        'Table'[CallMonth] <= CurrentMonth &&
        'Table'[EffectiveEndMonth] >= CurrentMonth
    )
)

vyilongmsft_2-1726452150385.pngvyilongmsft_3-1726452168832.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

what if you call in month 5, get  a two month bonus, and call in month 6 again?

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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