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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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