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.
Related
I'm new to Power BI online but trying to create a time-series chart with sum of sales by month, year and split by country. My result is:
What am I doing wrong?
With the Line chart visual selected put the Date hierarchy on the X-axis, Sales on the Y-axis and Country on the Legend field.
I have a Power BI report with a Date (slicer) visual like that.
In a Data Model there is a tabel 'Date' that corresponds to this visual.
At the moment there are only Day, Week, Month and Year dimensions in date selection options. But I would like to see that there is a Quater option too. If I select all date options in 'Date' table then the Power BI doesn't add a Quater option to the previous list but constructs a new visual with different styling (the weekday and month names are in estonian).
The Quarter field in 'Date' table is created like this:
Quarter = Quarter('Date'[Date])
So, my question is why Power BI doesn't add automatically a quarter option to the dropdown menu and are there any solutions for that problem?
Try detectimg column as a date in BI Editor or you may create duplicate column of date to see quarter options.
You can acheive this my selection "Filter" Visualization and drag drop the qtr, month etc in field section.
In my Power BI report I have a date slicer and a clustered column chart. In the chart I want to display how much events occurred per hour. For that I have a data table like this:
Date Hour Count
01.01.2019 07:00:00 4
01.01.2019 09:00:00 9
03.01.2019 07:00:00 1
07.01.2019 10:00:00 14
and so on ...
The charts x-axis displays the hour, y-axis the count.
Now I want to be able to filter the chart by date when I change the date range in the slicer. For example when I set the slicer to the range from 04.01.2019 to 10.01.2019, the chart should display the hour histogram only of these 7 days.
Hope you have an idea what I want to do.
Thanks in advance!
EDIT
I've found out why it is not working. The report contains multiple charts, each bound to an own data table. Each table has a date column. The slicer uses one of these date columns, but not the one of the data used by the clustered column chart. Now the date column of the clustered column chart can contain one date multiple times. But the date column which is used by the slicer contains each date only once.
The data table used by the slicer looks like this:
Date some other columns
01.01.2019 ...
02.01.2019 ...
04.01.2019 ...
...
Each date is contained once at the most in contrast to the date column of the first table, where each date can appear more than once. Because of this the slicer works for the one chart but not for the other.
Ok, found the solution and it is very easy. All you have to do is to create a relationship between the date column of table two and the date colum of table one. The slicer uses the date column of table two. If you change the date range now this affects the clustered column chart too.
my issue is as below:
I hava a Calendar table with dates and Orders Table related to the Calendar table by DateID. I have slicer that allows user to choose month and year from a Calendar table so that the data will be shown only for the choosen month but on one bar chart i would like to show sum of orders by month (so month will be on X-axis) from Orders table not for one month but for the last 12 months where the last month is the one from the slicer. E.g. if user chooses 06-2107 from slicer then the bar chart should show orders data from 07-2016 till 06-2017. Obviously when the slicer and bar chart interact with each other i can see only one month.
I've tried to create a measure in DAX but I failed and the results are not what i expect. If the description is to messy i can provide the pbix file as an example
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.