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
Anonymous
Not applicable

Measure DAX

kelvinbala_2-1628694397632.png

 

Charity (Charity ) has a relationship with Centcom Charity

 

My issue is: I am trying to count how many Saved Monthly after the "start date", The code below shows the count before taking account of the Start Date.

 

Inbound Save = CALCULATE(COUNTROWS('Centcom'), 'Centcom'[CAMPAIGN] = "Inbound",'Centcom'[DISPOSITION] IN {"Saved Monthly Conf. Back.", "Saved Monthly Conf. Original","Saved Monthly WLCM back"} ,Charity[TPV Save] = "Yes")

 

I want the DAX function to count after the Start Date.

1 ACCEPTED SOLUTION
Jos_Woolley
Solution Sage
Solution Sage

Hi,

Inbound Save =
SUMX (
    Centcom,
    IF (
        'Centcom'[CAMPAIGN] = "Inbound",
        IF (
            'Centcom'[DISPOSITION]
                IN {
                "Saved Monthly Conf. Back.",
                "Saved Monthly Conf. Original",
                "Saved Monthly WLCM back"
            },
            IF (
                RELATED ( Charity[TPV Save] ) = "Yes",
                IF ( Centcom[Date] > RELATED ( Charity[Start Date] ), 1, 0 )
            )
        )
    )
)

Regards

View solution in original post

1 REPLY 1
Jos_Woolley
Solution Sage
Solution Sage

Hi,

Inbound Save =
SUMX (
    Centcom,
    IF (
        'Centcom'[CAMPAIGN] = "Inbound",
        IF (
            'Centcom'[DISPOSITION]
                IN {
                "Saved Monthly Conf. Back.",
                "Saved Monthly Conf. Original",
                "Saved Monthly WLCM back"
            },
            IF (
                RELATED ( Charity[TPV Save] ) = "Yes",
                IF ( Centcom[Date] > RELATED ( Charity[Start Date] ), 1, 0 )
            )
        )
    )
)

Regards

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.