Forum Discussion
Pillsbury33
Helper I
6 years agoDividing two fields and a filter
Hello everyone, I’m hoping someone can help with my question. I am trying to divide two calculations in two separate tables with a visual filter. The logic I am looking for is effectively is to c...
- 6 years ago
Hi Pillsbury33 ,
Firstly, you need to create a relationship between two tables in the model tab if you don't have it.
Then refer to the following DAX:
Measure = CALCULATE ( SUM ( 'Table'[Incident] ) / SUM ( 'Table (2)'[employee] ), ALLEXCEPT ( 'Table', 'Table'[Site] ) )Here is the result.
Here is my test file for your reference.
amitchandak
Super User
6 years agoPillsbury33 , Not sure I got. You need to create a common Site table/dimension and join with both tables.
Then you can create % = divide(Sum(Table1[Incident]),Sum(Table2[Employee]))