Change shared axis/hierarchy based on date slicer - powerbi

I am having some trouble dynamically altering my x-axis based on a custom date slicer.
Basically it works fine if the end-user is looking at every single date between 2020 and 2021, however, if the end-user filters to just a couple months, I want the column chart to skip the Year and just jump to the MonthYear axis to remove the user having to start from the year then drill down to see the months.
Similarly, if it was just days filtered in the slicer it should jump to the Date axis rather than drilling down from Year then to MonthYear then finally to Date.
How would I go about doing this?
Date Slicer:
Stacked Column Chart:
Shared Axis:

Related

Set default date range for 2 years in power bi date slicer

I have a dataset which is containing data from 2015 to latest and dataset is refreshing on daily basis. So I need to set default start date and end date for 2 years from latest date as by default. But User can also see the previous data by changing the date selection. How can I set the default date range for last 2 years including today?
We can easily perform day, month, year filtering with the slicer option we have selected from the visualisation section.
enter image description here
In the dateadded slicer that we see in the image, we can perform the filtering process we want from the options located in the upper right corner.

Show all data for month to date

In Power BI, I am creating a grid to show specific data in a time period. I want the grid to update everyday to show the data corresponding month to date. I want my data to represent 9/7 - 10/7 and tomorrow I want it to update to show 9/8-10/8. Essentially I want a measure in DAX to display all data from month to date.
You can do this from relative date filter in the right side tabs,
Select visualization and their is filter for date,
try with above method.

Choosing a Power BI Measure based on a slicer

I'm making a data report for my company which will have a slicer to select the quarter. I have colmuns for Beginning balance, each of the three months within the quarter (Per1, Per2, and Per3), Quarter to Date, and Year to Date. Right now, I have no problems getting the data into the right format. I've got a report with a SUM measure for each month, and "Per" measures with Switch functions to choose which SUM measures are being used.
What I'd like to do is be able to change the column names from Per1, Per2 and Per3 to the actual month being displayed (April, May, June for example).
Is there a way to either change column heading so it displays the name of the measure being chosen?
Alternatively, is there a way to use the slicer to choose which SUM measures are pulled into the report?
Right now, it looks like this:
Beginning Per1 Per2 Per3 QTD YTD
I'd like it to look like this:
Beginning Jan Feb Mar QTD YTD
I'd like to be able to change the months based on the selection of quarter in the slicer.
In Visualizations(right menu) you can try to change the data in the fields Legend and Values and you can play with Filters as well.
If it doesn't work you can change the column name when you connect to the excel data, it will change only on the query not in the source.

power bi year over year comparison and line chart

I want a custom table/matrix in power bi displaying the year over year data and also a line chart displaying the same. i have all the year information in one column i.e both 2018 and 2019 data in one column. I want to perform an aggregate operation on another column and make the comparison for each of the month in the previous year
The checkout date column has all the date information for both years. The caring attitude column has the data for which i want to perform aggregation based on month
This is how i want the data to be displayed in the power bi
This is the line chart i want. Year over Year comparison of those values
In Excel I manually add the goal values in the rows and then create a graph
*for the former you just need to have date(years) as your rows date(months) as columns and caring attitude of staff as your values(this need to be done in a matrix visual and date should have hierarchy).
* for the latter date(months) as axis, date(years) as legend and caring attitude of staff as your values(for line chart).

Power BI Comparative sales report

I have to prepare a stacked column chart with two bar. One will be fixed - Last day of last financial year. Another will show latest date when not selected. Alternately, I want to select from date slicer drop down with any previous date of current year and compare it with last FY end date Sale. So, when the date will be changed in slicer, it will only change one bar, while last FY bar should remain unchanged.
It could be better if you provide some more details with your current approach..
If I have to guess then you probably you need 2 measures,
Create a Measure which dynamically calculate last year FY last date Fact (Sales, Inventories etc...)
Create a Measure which is using current year date to calculate (This has to be same date or related date which you are considering
for your slicer)
Then you can use these 2 measure values in Stack chart,
Remember your first measure remains static throughout current year but second measure change as per your date selection.
I hope it helps!!