Calc from Disconnected table

paivers

Board Regular
Joined
Sep 4, 2009
Messages
64
I have a disconnected unrelated date dim table I am using as a disconnected slicer. In my fact table I want to calculate some things based upon a date range from that slicer (the items with dates belong in a related table, but this table doesn't even have dates to relate to. So I have a measure on this fact table that says EarliestIntervention:=min(InterventionDate[iDate]). That works fine, when I select a year, it shows Jan 1 of the selected year. The problem is I want to reference that measure in the rows of the fact table, and when I do that it always shows the first date in the dim regardless of what is selected. I have tried a few calculated field formulas such as =[EarliestIntervention]
=calculate(min(InterventionDate[iDate]),AllSelected(InterventionDate))
=minx(filter(AllSelected(InterventionDate),true=true),InterventionDate[iDate])
None of these work. Ideally rather than the result be a calculated column, I'd like this to be a measure, but that introduces another issue where I need a row context to be able to pull in a column to calculate with. Any ideas on the cleanest approach here?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Calc columns never recalc in response to slicer selections (or ANY activity in the pivot), so when you reference a measure in a calc column, the measure is ALWAYS evaluated as a grand total.

Sounds like you need an "all measure" solution that doesn't involve calc columns at all, but I don't understand your scenario well enough to offer any advice.
 
Upvote 0
Thanks Rob. I did do some thinking about it and ended up adding a field to the fact table with the slicer value (increasing the rows, but a small table), and connecting in the disconnected slicer. That way I could write measures that would respect the selected rows.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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