Forum Discussion
Slicers on calculated columns
- 6 years ago
Hi Anonymous ,
Would you please try to use the following measure:
Measure = VAR A = MAX ( 'Date'[Date] ) RETURN CALCULATE ( SUM ( 'Plant Forecasts'[Selection_Count] ), ALLSELECTED ( 'Plant Forecasts'[Plant Type] ), 'Plant Forecasts'[StartDate] <= A, 'Plant Forecasts'[EndDate] > A, 'Plant Forecasts'[StageCode_Name] <> "Won" )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Dedmon,
I'm happy to provide an example but the usual dropbox/file sharing options aren't available to me as my company blocks them.
Essentially this is counting equipment hires so a hire may start on 1st September and be out for say two weeks. This would mean that I would need the chart to show 1 item for 14 days as opposed to now where it shows the one item for the 1 day. I have multiple hires starting on different days and running for different periods. The calculate function that allows me to do that looks like
Hi Anonymous ,
Would you please try to use the following measure:
Measure =
VAR A =
MAX ( 'Date'[Date] )
RETURN
CALCULATE (
SUM ( 'Plant Forecasts'[Selection_Count] ),
ALLSELECTED ( 'Plant Forecasts'[Plant Type] ),
'Plant Forecasts'[StartDate] <= A,
'Plant Forecasts'[EndDate] > A,
'Plant Forecasts'[StageCode_Name] <> "Won"
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
- Anonymous6 years agoNot applicable
That seems to have cracked it. Awesome, thank you!