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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nicky_12345
Frequent Visitor

Sum of billed quantity for a particular month and year

Hi,

The below measure were created for sum of billed quantity for 2021 and 2022. Please advise how to create a measure for sum of billed  quantity for July 2022 and then another measure for August 2022. Thanks!

 

Billed Quantity 2021=
    CALCULATE(
        SUM('Append1'[Billed Quantity]),
        'Calendar'[Date].[Year] IN { 2021 }
    )
 

 

Billed Quantity 2022=
    CALCULATE(
        SUM('Append1'[Billed Quantity]),
        'Calendar'[Date].[Year] IN { 2022 }
    )

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can "pile on" filters

 

Billed Quantity August 2022=
    CALCULATE(
        SUM('Append1'[Billed Quantity]),
        'Calendar'[Date].[Year] = 2022 ,
        'Calendar'[Date].[MonthNo] = 8
 
    )

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

You can "pile on" filters

 

Billed Quantity August 2022=
    CALCULATE(
        SUM('Append1'[Billed Quantity]),
        'Calendar'[Date].[Year] = 2022 ,
        'Calendar'[Date].[MonthNo] = 8
 
    )

Thank you so much! 🙂

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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