Forum Discussion
IAA
Helper I
6 years agoDax slicer multiple selections
Dear Community, I am building a cashflow forecast, where the due date of bills can dynamically changed with an X number of days, using a parameter. This is combined with a slicer where the specifi...
- 6 years ago
IAA
I am not sure why you have a disconnected slicer for the categoryTry this measure:
Measure = IF ( COUNTROWS( INTERSECT( ALLSELECTED ( 'Slicer Table'[Category] ), FILTERS('Value by date 2'[Category] ) ))>0, CALCULATE ( SUM ( 'Value by date 2'[Value] ), DATEADD ( DimDate[Date], - [Value Parameter], DAY ) ), CALCULATE ( SUM ( 'Value by date 2'[Value] ), DATEADD ( DimDate[Date], 0, DAY ) ) )________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
Fowmy
Super User
6 years ago
IAA
I am not sure why you have a disconnected slicer for the category
Try this measure:
Measure =
IF (
COUNTROWS(
INTERSECT(
ALLSELECTED ( 'Slicer Table'[Category] ),
FILTERS('Value by date 2'[Category] )
))>0,
CALCULATE (
SUM ( 'Value by date 2'[Value] ),
DATEADD ( DimDate[Date], - [Value Parameter], DAY )
),
CALCULATE (
SUM ( 'Value by date 2'[Value] ),
DATEADD ( DimDate[Date], 0, DAY )
)
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂