Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217049

How do you work with grouped data across tables?

$
0
0

Hello,

 

I have the following problem that I'd like to solve with DAX.

 

Table 1 - Employee

Emp ID

Emp Name

Promotion Sales Goal ($)

 

Table 2 - Sales

Sale ID

Sale Item

Sale Type

Sale Value ($)

Emp ID

 

I need to group Table 2 - Sales by Emp ID and a particular Sale Type and then subtract the sum of Sale Value from Promtion Sales Goal to get an over/under for that employee.

 

This is pretty straight forward to do by making a new table, but I also need to mix the resulting over/under value against the sum of the other sales of different types. So where that emp is to their promotion goal and what other sales they've done. This data is ideally displayed in a pivot table/matrix.

 

Is it possible to do this with a DAX measure without making another table? I strikes me as the easiest way to possibly solve this with the required pivot table/matrix, but maybe it's easier to make another table and do some joins?


Viewing all articles
Browse latest Browse all 217049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>