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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Help combining to sumarized tables

Hello looking for some help I have created to different summarized dax data table and now I would like to combine those to summarized table together if possible.

 

Table 1  "Monthly Sales"

Has Columns: Sales Rep, Month and Year, and Monthly Sales

Monthly Sales.JPG

Table 2 "Monthly Sales Budget"

Has Columns: Sales Rep, Month and Year and Monthly Sales Budget

Monthly Sales Budget.JPG

 

What I would like to do is create another new table that puts the Monthly sales next to the Monthly Sales budget.

 

Please Help.

1 REPLY 1
AntrikshSharma
Super User
Super User

You could first create a CROSSJOIN of both tables, something like this.

CJ Dates and Customers =
VAR _Dates =
    SUMMARIZECOLUMNS ( Dates[Calendar Year], Dates[Month] )
VAR _Customers =
    SUMMARIZECOLUMNS ( Customer[Gender], Customer[Education] )
VAR _DatesAndCustomers =
    CROSSJOIN ( _Dates, _Customers )
VAR Result =
    FILTER (
        ADDCOLUMNS (
            _DatesAndCustomers,
            "Sales", [Total Sales],
            "Profits", [Total Profit]
        ),
        NOT ISBLANK ( [Sales] ) || NOT ISBLANK ( [Profits] )
    )
RETURN
    Result

 123.PNG

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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