So I am trying to plot a value over a time series in powerBI report builder. I am currently getting the data from a relational MSSQL database. Now, this value (UnitCapacity) has a StartDate and an End Date. So what I have done is created a date time dimension inside powerbi using an mquery to replicate the days between a particular year and another. What I am trying to do is to plot the Unit capacities over a time series chart. Then I created filters so that I can choose which Refinery unit to plot.
So how I tried to tackle it is by creating a relationship between the IIROutagesDenormalised and DateTimeDim over the handle where the handle is in this format: {YYYY}-{MM}-{DD}. Is this the right way to do this please?
When I tried to Create the DAX query to get the Calendar date dimension, this is giving me the error below:
You don't need to take care of the date format because it should be handled by Power BI, as long as the data type is correct. Not sure about the business logic but there is a simpler way using DAX.
You can create a calendar table using DAX:
DateTimeDim = CALENDAR(MIN(IIROutagesDenormalised[OutageStartDate]), MAX(IIROutagesDenormalised[OutageEndDate]))
Which returns a table with column Date.
If you create a relationship between the Date column and OutageStartDate:
With a simple measure (depending on the business logic), like
Total = SUM(IIROutagesDenormalised[UnitCapacity])
You can plot something like the following:
Which also works with the filter:
Related
I'm building a model in power pivot, and have so far 2 tables retrieved from API calls. I added a calendar, linked it to my tables, and it was working fine. I was able to add a timeline linked to my Calendar date field (not fact tables date fields).
Link to the Calendar table are seen by Power Pivot
Then I updated the range of dates of my Calendar table, to go further in the past, and further in the future. Since then, when I try to add a timeline linked to the Calendar date field, nothing happens. It's weird, because Power Pivot is seeing the relationship with the calendar table, when I add the Calendar date fields in the power charts (see image 1). It's really the timeline that's not appearing anymore. If I try to add original date fields from fact tables, then the timeline adds correctly but that's not what I want.
Steps to update Calendar date range
Clicking Okay does nothing, when it usually adds a timeline
I don't know if it's a bug in Power Pivot or I broke something?
The Excel model is below
Data model, with relationships to Calendar table
Okay so I found the solution to my problem after 3 days of research. Basically by adding the timeline outside of a pivot chart, linking it to my calendar table, instead of not showing anything, it showed the error message pretty much saying that dates were not supported in Excel. So then I figured my date format was correct as it's the native calendar table, so it was probably a problem linked to the range. After a few tests, it seems anything before 1900 is not supported in the timeline, same goes for after 2099. Adjusting the range fixed it!
I have this Datastudio report with one Chart (with optional date range) and one table showing all cases.
Issue is that when I change date range for chart, it also change table values accordingly.
I understand this logic, but what if I want have one separate table showing all numbers of all time next to this selectable time chart.
Is it even possible?
So can I have two data objects independent in one report ?
https://datastudio.google.com/reporting/23ff0aaf-629c-495b-a629-a92d52af15e9
here is website with all reports
https://webcovid19.live/
Nimantha's answer is a valid approach. However, this approach can be used only for the date range filter. If you change the Country/Region filter values, both charts will get updated.
If you want both date and dimension filters to apply to certain charts, you can simply group them. From the official help docs: Restrict a filter control to specific charts: "To do this, select the filter and one or more charts. Then use the Arrange > Group menu (or right-click and and select Group). Now, the filter only applies to the charts in this group."
Groups
Minhaz Kazi's solution on Groups would be the way to go.
For future reference, adding a Google Data Studio Report and a GIF to elaborate on the method:
Original Post
It can be achieved by setting the Default Date Range of the Table to Custom and then setting the Date Range as required (in this case, the default, Auto Date Range will do the trick).
Google Data Studio Report and GIF to elaborate:
So I'm having trouble trying to configure a new cube that takes a snapshot of my company's open orders each day. Every night, a snapshot is taken and stored in the data warehouse with a date key for the date the snapshot was taken. This date would be the one that we want to be non-additive. However, we also have other dates in this data set, such as scheduled ship-date, order date, etc. that are fully-additive, just like the other non-date dimensions.
Does anyone have any advice on how I can create a cube for this data so that the order totals can be summed across the other dates, but the capture date is LastNonEmpty?
The first connected Date dimension in the Dimension Usage tab is the semi-additive Date dimension. The rest are additive. I describe the exact behavior here.
This answer applies to Multidimensional cubes (not Tabular) which is what I assume you have since you mentioned LastNonEmpty.
I'm having an issue where the figures pulled from Analytics are different in a table format than the time series.
As you can see in the image below the 'Nutzer' (user) value in the table for Sep 2019 is 6692 but on the time series is 7789. This then affects the calculated values for 'Umsatz pro Nutzer'.
Does anyone know why this happens and how to stop it?
I think the most likely answer is that there is a filter active on one or both of the objects that is altering the displayed data.
To test this out, create a copy of the sheet and delete the chart. Then make a copy of your table and change it to a time series using the chart options. I just did this process using a connection to the GA property for our mobile app and I see identical data for users for both the table and the time series.
Hi
i'm struggling with adding time dimension to OLAP cube.
I can get everything in cube to work except date.
In my source data view I have datetime column.
I go by using Dimensions->New Dimension->Generate time dimension on the server.
I end up with a nice hierachical time dimension (Date-Month-Quarter-Year).
Later I add this dimension to cube and define regular relationship with datetime column from source data view (same table which has fact data).
When I try to deploy the cube, I get error:
Errors in the OLAP storage engine: The attribute key cannot be found when processing:Table: 'table_name', Column: 'registration_date', Value: '3/29/2007 3:00:00 PM'. The attribute is 'Date'
Maybe I don't get something? Every manual I can find talks about calendar table already created in the source database. There are plenty of script which will create calendar table for you. But why should I ? Isn't Generate time dimension on the server meant for it?
I would guess that your date field in your fact table needs to be present in the time dimension. Perhaps remove the time or create a calculated field in the SSAS designer. More experience people may have better answers, I've only made one cube.