Forum Discussion
prihana
Helper V
8 years agoDynamic Table based on date slicer value
I want to create a calculated table based on the value from a date slicer. E.g. Master table has item wise daily sales (Date,ItemCode,Stock) There is a date slicer (between) to select the per...
v-chuncz-msft
Community Support
8 years ago
Values in a calculated table are fixed. But you may create measures as follows. It takes advantage of Show Categories With No Data.
MaxSelectedDate = CALCULATE ( MAX ( Table1[Date] ), ALLSELECTED ( Table1 ) )
Measure =
VAR d =
MAX ( Table1[Date] )
RETURN
IF ( d = [MaxSelectedDate], SUM ( Table1[Stock] ) )