Default Date on Slicer & custom selection - powerbi

I have a date slicer which should show last 12 days as selected when report opens. Further, user should have flexibility to select any other date range.
enter image description here

Can you try Relative Date option for the date slicer as shown below image-
In this case, you can select last 12 Days in the slicer while publish. User can then switch to any other date range as per necessity. But while initial loading, report will always show last 12 days in the selection.

Related

How to get a table to show only the active month and previous month?

I have a table with the columns |Month|Year|Cost|. I want my table visual to show the current month and previous month only, how do I go about automating this so I don't have to click the specific month on the filter?
Select your Visual. Go to Filter and select the Date column. Fill in according image below and Apply Filter.

Power BI Dax Expression Help - Setting default slicer between dates

Power Bi report uses a date slicer (between) - As a default I want it to set the first date in the slicer as Monday (last week) and the last date as Friday (last week). I dont want this to be a relative date but always must be the previous Mon-Fri. I have a column in my data set that tells me which one is the 'Previous Week' as a text field. I dont know how to use this to set a default slicer value. But i also want to make sure the user can change the slicer dates and it changes as per the user request.
Example today is 01/09/2020
I want my default slicer date as : 24/08/2020 - 28/08/2020
I have two measures which gives me by last week dates:
DefaultSD = MINX( FILTER(Data, [WeeksFilter] = "Previous Week Only"),[Date])
DefaultED = MAXX( FILTER(Data, [WeeksFilter] = "Previous Week Only"),[Date])
I assume this is possible using a DAX expression but dont know how to create this expression to populate these default values.
Please note the data is refreshed up until 01/09/2020 so there is currently data for this week but i dont want this to included in the default slicer on report load
You can't set slicer defaults yet but this can be achieved with relative date filtering.
Select date in the last 1 calendar week:

How to set a default selection for a slicer in power bi and estabilsh connection betwwen two slicers?

I have slicer which is showing options to select a year, this field is not directly used in any of the graphs. How to set the current year to be selected in this dropdown.
And in another slicer, I have given the option for the date range, I want by default it should show the current date range as per the "year to view" slicer.
How to achieve this?
Please see the attachments for clarity.
You can apply a descending order to your YEAR slicer and make "Single Select" on from the slicer properties. This way the top most value will automatically selected when you refresh your report and for a descending order, current Year value will be on top and selected.
The date range slicer will also populated based on the selected value in the Year slicer.

Display year,quarter,month and day Charts based on the selected Date

There are four line charts for Year,Quarter,Month,Day in my power bi report. the requirement is to pick a date from the date picker and based on the selected date I need to display graphs accordingly(selected date and 3 values back). E.g. if user select 1.1.2018 from date picker, I need to display graphs with year,quarter,month,day belong to 1.1.2018 and 3 more values(years,quarters,months,days) back.
I add visual level filters for each line chart and filter top 4 values.but it's work for year chart only. any ideas?
Dashboard_1
Dashboard_2
Data
Hey Dasaru try to create separate columns for year, quarter, month & date and use that as Axis in each chart
FYYear = Sheet1[Period].[Year]
FYQuarter = Sheet1[Period].[Year]&" "&Sheet1[Period].[Quarter]
Apply the same solution for Month and Date.

Showing only Month and Year using the Data Segmentation visualization

I'm using the Data Segmentation visualization in Power Bi to filter the page using a Date column, but it shows the whole date (Day, Month, Year) and I need to show only Month and Year, is there a way to filter out the day?
You can create a new column in PowerBI desktop and use it.
Click on New Column in Home ribbon under Calculations section and enter like
MonthYear = Query1[CreatedDate].[Month] & "-" & Query1[CreatedDate].[Year]
Where CreatedDate is your current date field. Then you can use MonthYear column to filter.
When adding the date into the Viz, right click on the field and you show be able to deselect the date items you do not want.