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
ahhollan
Helper I
Helper I

matrix subtotal assistance

I have a table (shown below) and I want to create a matrix visual that shows the subtotal forecast by month for the Owning Org. I am new to DAX and was wondering how to do this. Currently, the matrix shows a sum total of the entire column (second image)

ahhollan_0-1667395058693.png

 

ahhollan_1-1667395084926.png

 

 

1 ACCEPTED SOLUTION

@ahhollan 

now you can try

ForecastMeasure =
SUMX (
    VALUES ( 'Date'[Month] ),
    CALCULATE (
        SUM ( 'FY22 Lending Budget'[Forecast] ),
        FILTER (
            'FY22 Lending Budget',
            MONTH ( 'FY22 Lending Budget'[Month/YR] )
                = MONTH ( MAX ( 'Date'[Calendar Date] ) )
        )
    )
)

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @ahhollan 
How does your data model look like?

ahhollan_0-1667396271582.png

 

@ahhollan 

Which column connects the two fact table?

i did have it on month/yr but changed it to owning org and that made a difference.

@ahhollan 

now you can try

ForecastMeasure =
SUMX (
    VALUES ( 'Date'[Month] ),
    CALCULATE (
        SUM ( 'FY22 Lending Budget'[Forecast] ),
        FILTER (
            'FY22 Lending Budget',
            MONTH ( 'FY22 Lending Budget'[Month/YR] )
                = MONTH ( MAX ( 'Date'[Calendar Date] ) )
        )
    )
)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors