Forum Discussion
Anonymous
4 years agoNot applicable
select largest value automatically slicer
How can I make a slicer that it can select largest value automatically when data source related column changes? for example, the data column is 202203,202204,202205, now I make it 202205 by default,...
dbulawa
2 years agoFrequent Visitor
If you are using a dropdown/tile/list slicer to select your date you can do the following:
- Go to the right-hand Data pane and click the "..." (More Options) of the database containing your date values
- Create a "New Column"
- Enter the following formula for the new column:
Date_Slicer = if([NameOfYourDateColumn] = MAX([NameOfYourDateColumn]), "Latest Month", FORMAT([NameOfYourDateColumn], "MM-YYYY"))
- Select the "Table view" on the left-hand side, select the "Column tools" tab and select your original date column in "Sort by column":
- Instead of the date column, use this new column for your slicer
- Ensure that "Latest Month" is selected before publishing:
As you can see this is written for a date column as a source, but it should also work for other value types (just leave out the FORMAT part then).