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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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