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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ERing
Post Partisan
Post Partisan

Help with DAX calculation for specific months of 2024

I have a requirement to show a calculation for specific months of the year 2024.

 

I need to calculate this specifically for the period that includes March 2024, April 2024, May 2024, and August 2024.

 

The calculation is the conversion rate which = DIVIDE('Inbound_Calls'[INBOUND_CALLS],'Web_Data'[PAGE_VIEWS]). 

 

The calcuation should be the sum of 'Inbound_Calls'[INBOUND_CALLS] for the period of March 2024, April 2024, May 2024, and August 2024 divided by the sum of 'Web_Data'[PAGE_VIEWS]) for the period of March 2024, April 2024, May 2024, and August 2024.

SAMPLE DATA 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @ERing 

 

First make sure, to change the direction of your date relationships to one and not both. And then add a year column based on the date - yours is pointing to start date. Create the following measures

Conversion Rate =
DIVIDE ( SUM ( Inbound_Calls[INBOUND_CALLS] ), SUM ( Web_Data[PAGE_VIEWS] ) )

either of these

Conversion Rate Specific Months = 
CALCULATE (
    [Conversion Rate],
    KEEPFILTERS (
        'Calendar'[Calendar Year] = 2024
            && MONTH ( 'Calendar'[Date] ) IN { 3, 4, 5, 8 }
    )
)

Conversion Rate Specific Months REMOVE DATE FILTERS = 
CALCULATE (
    [Conversion Rate],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Calendar Year] = 2024
            && MONTH ( 'Calendar'[Date] ) IN { 3, 4, 5, 8 }
    )
)

danextian_0-1733354523616.png

Please see attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @ERing 

 

First make sure, to change the direction of your date relationships to one and not both. And then add a year column based on the date - yours is pointing to start date. Create the following measures

Conversion Rate =
DIVIDE ( SUM ( Inbound_Calls[INBOUND_CALLS] ), SUM ( Web_Data[PAGE_VIEWS] ) )

either of these

Conversion Rate Specific Months = 
CALCULATE (
    [Conversion Rate],
    KEEPFILTERS (
        'Calendar'[Calendar Year] = 2024
            && MONTH ( 'Calendar'[Date] ) IN { 3, 4, 5, 8 }
    )
)

Conversion Rate Specific Months REMOVE DATE FILTERS = 
CALCULATE (
    [Conversion Rate],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Calendar Year] = 2024
            && MONTH ( 'Calendar'[Date] ) IN { 3, 4, 5, 8 }
    )
)

danextian_0-1733354523616.png

Please see attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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