Forum Discussion
Calendar Slicer - Only Display Selectable Months with Data
- 6 years ago
Anonymous, try this:
Two fact tables:
Sales_US
Sales_Other
Create a calculated table:
SalesDates = VAR DatesUS = SELECTCOLUMNS ( Sales_US, "Date", Sales_US[Date] ) VAR DatesOther = SELECTCOLUMNS ( Sales_Other, "Date", Sales_Other[Date] ) VAR DatesAll = UNION ( DatesUS, DatesOther ) VAR DatesDistinct = DISTINCT ( DatesAll ) RETURN DatesDistinctJoin the calculated table to the date table:
Create matrix. The row field should be Date from the date table (not the calculated table).
Create slicer using the calculated table.
Anonymous , Create a measure from fact and use that filter in the slicer
count(fact[value]) // in viusal level use not blank
This is for 2 slicer will work for 1 too
- Anonymous6 years agoNot applicable
Thanks for the help, but for some reason, that video didn't seem to work but probably just not doing it correctly.
I created a measure called "MaxDate". I pulled that measure to the "Add Data Fields Here" for the slicer, but then it wants me to select the dates, it doesn't use the Measure I pulled into the slicer. If I manually pic the dates, my slicer's start / end date works great, but doesn't seem to allow me to pull in a measure and do this.