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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.