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
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
Community Champion
Community Champion

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
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