Filtering a Disconnected Calendar

frankee_gee

Board Regular
Joined
Mar 3, 2008
Messages
144
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello Everyone, Hoping for some help with Filtering a Disconnected Calendar


table 1: Report "data table"

working with 3 columns in "Report" table
-Report[IDNo]
-Report[OutDate]
-Report[InDate]


table 2: Calendar "Connected calendar : t_Calendar[Date] to Report[OutDate]

table 3: CalendarFree "Disconnected Calendar"



Created the following meassure: IDNoCount:=DISTINCTCOUNT(Report[IDNo])

Need a count of all IDNoCount w/ OutDate and a count of all InDate


It would like something like :

OutDateIDNoCount:= Calculate(
[IDNoCount]
Filter(Report[OutDate]<Max CalendarFree[Date])


I'm missing something because currently it's returning huge numbers.

Thanks for any and all help.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
If [IDNo] is unique in every row of Report, you could also use COUNTROWS and take advantage of the current relationship:

OutDateIDNoCount := COUNTROWS ( Report )

and for InDateIDNoCount, create an additional relationship between Report[InDate] and t_Calendar[Date] which the data model will mark as inactive (as it should). Then

InDateIDNoCount := CALCULATE ( COUNTROWS ( Report ), USERELATIONSHIP ( Report[InDate], t_Calendar[Date] ) )

Tom
PowerPivotPro - Transforming your Business with Power Pivot and Power BI
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,213
Members
453,024
Latest member
Wingit77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top