Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Table 2 "Monthly Sales Budget"
Has Columns: Sales Rep, Month and Year and Monthly Sales Budget
What I would like to do is create another new table that puts the Monthly sales next to the Monthly Sales budget.
Please Help.
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
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |