Add the sum of one measure from the beginning of time to a specific date to the sum of another measure from the specific date to the filter context?


i want feels little complicated.

we have measure calculates how many employees have started beginning of time until pivot table filter context:

employees started:=calculate(counta(temployees[employed from]);filter(all(tdate[date]);tdate[date]<=max(tdate[date])))

we have measure calculates how many employees have quit.

employees quit:=calculate(counta(temployees[employed until]);filter(all(tdate[date]);tdate[date]<=max(tdate[date])))

we have measure calculates have many employees forecasted start beginning of time until pivot table filter context:

forecasted start:=calculate(counta(tforecast[employed from]);filter(all(tdate[date]);tdate[date]<=max(tdate[date])))


all of measures above work.

now want create new pivot table report uses of measures , adds complexity. explain below.

1) user should select month (and year) current month

2) series in pivot table should show employees started, should not include employees start in or after current month

3) series in pivot table should show employees quit. series not affected selection of current month

4) series in pivot table should show employees forecasted start. should not include forecasts events prior current month.

how can create new filter users can choose current month (1) , how can create measures (2 , 4) current month used in way described?

i happy able find solution report. i appreciate immensely.

this sounds job disconnected tables in model.

this common technique in power pivot , see if referred disconnected tables, disconnected slicers, or parameter tables in various blogs , books.

it way allow slicer selections used means of creating parameters other measures.

basically, add table data model contains parameter values want available in slicer. table should not related other table in model.  in case sounds table contain form of month , year values (jan 2015, 2015 - 01, 201501, etc.)

then create measure "harvests" slicer selection.  this measure can used in other measures filtering criteria appropriate.

here links detail use of technique.  your scenario different basic idea remains same.  this adaptable , powerful technique can add lot additional interactivity pivots/charts.

http://www.powerpivotpro.com/2011/10/user-friendly-report-sorting-with-slicers/

http://www.daxpatterns.com/parameter-table/



SQL Server  >  Power Pivot



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........