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

Relationships and Slicer

$
0
0

Hi

 

I'm trying to sort out the relationships shown in my screenshot below in order to get my DeptCode slicer working with my sumabsenthrs measure on the visual level.

 

My sumabsenthrs measure sums the [ern_worked_hrs] in the Payroll Table with a filter that selects only those that have a certain [pay_code]:

sumabsenthrs = CALCULATE(SUM(Payroll[ern_worked_hrs]),RELATEDTABLE(PayCodesTable),PayCodesTable[bi_pay_code]="absent")

 

The Payroll Transactions Table contains the department in the [ypt_department] column which is currently linked to the DeptTable with [DeptCode]. And the Payroll and Payroll Transactions Table are linked by the [row_id] column in each.

 

I have been able to get the sumabsenthrs measure to work with slicers from the DateTable but not the DeptTable.

 

Any help is much appreciated.

Thanks

RelationshipsRelationships

 

 


Viewing all articles
Browse latest Browse all 217930

Trending Articles



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