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
ERing
Post Partisan
Post Partisan

How to calculate conversion rate over last 7 days & conversion rate of prior 7 days

I have a model like below (other columns hidden for confidentiality) and I need to calculate the conversion rate (Total_Inbound_Calls_Booked / Accepted_Calls) for the following:

 

1. Conversion rate for last 7 days.

2. Conversion for the 7 days prior (days 8 - 14).

3. Change in conversion rate for the last 7 days compared to the prior 7 days (days 8 - 14)

 

Any and all help is appreciated!

 

1.png

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @ERing 
Can you please try below two measure 

ConversionRate_Last7Days = 
VAR Last7DaysAcceptedCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Accepted_Calls]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]), -7, DAY))
VAR Last7DaysTotalInboundCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Total_Inbound_Call_Booked]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]), -7, DAY))
RETURN
    DIVIDE(Last7DaysAcceptedCalls, Last7DaysTotalInboundCalls, 0)
ConversionRate_Prior7Days = 
VAR Prior7DaysAcceptedCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Accepted_Calls]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]) - 7, -7, DAY))
VAR Prior7DaysTotalInboundCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Total_Inbound_Call_Booked]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]) - 7, -7, DAY))
VAR ConversionRatePrior = 
    DIVIDE(Prior7DaysAcceptedCalls, Prior7DaysTotalInboundCalls, 0)
RETURN
    ConversionRatePrior



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

2 REPLIES 2
PijushRoy
Super User
Super User

Hi @ERing 
Can you please try below two measure 

ConversionRate_Last7Days = 
VAR Last7DaysAcceptedCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Accepted_Calls]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]), -7, DAY))
VAR Last7DaysTotalInboundCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Total_Inbound_Call_Booked]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]), -7, DAY))
RETURN
    DIVIDE(Last7DaysAcceptedCalls, Last7DaysTotalInboundCalls, 0)
ConversionRate_Prior7Days = 
VAR Prior7DaysAcceptedCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Accepted_Calls]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]) - 7, -7, DAY))
VAR Prior7DaysTotalInboundCalls = 
    CALCULATE(
        SUM(Inbound_Calls[Total_Inbound_Call_Booked]),
        DATESINPERIOD(Calendar[Date], MAX(Calendar[Date]) - 7, -7, DAY))
VAR ConversionRatePrior = 
    DIVIDE(Prior7DaysAcceptedCalls, Prior7DaysTotalInboundCalls, 0)
RETURN
    ConversionRatePrior



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





This worked. Thank you!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors