I created chart to show all data by 24 hours of the day the thing here it only show that in in the 24 hours for example it might show only 13 as there no other intersect in the database i want to show all 24 hour and it hit the column on 13 if it's only the one having data i tried lot of things but couldn't figure it out yet any hints
Create a table with numbers and select first 24 of them. Alternatively you can outter join your data with this query:
select 1 as Number
Union All
Select 2
Union All
Select 3
...
Union All
Select 24
You can add this query as a separate SQL Query in Cognos report.
Related
How to build a list view that will only show items in a list that were created or modified within the past 24/48/... hours.
Edit View and in the Filter section select column, which you want to use for filtering (Created or Modified or both). Then select condition is greater than. And insert formula [Today]-2. The number 2 means number of days you want to use for filtering (number 1 means 24 hours in the past, number 2 means 24 hours in the past,...).
Image of result
Please mark this as answer if it helps you.
I currently have a large data set sorted largest to smallest in terms of demand-(solar+wind) and I would like to choose the top 12 cells in terms of demand-(solar+wind) but occuring 12 different days.
This is the top of my spreadsheet.
Thus as the peak demand-(solar+wind)often occurs on the same days at different times I have to manually scroll through the large excel file to choose the top 12 that occur on different days.
What is a shortcut way to do this? I have thought of conditional formatting or the sort function but none of these have proven useful to me just yet.
Simply insert a new pivot table, select "Trading interval" as a rows field and demand-(solar+wind) as values. In your new pivot table right-click on the Trading interval field and select "Group" and "Days".
I am using the excel's pivot table to sort and filter data from Super Store Dataset from tableau . Here is a screen shot of my output.
The steps that I followed are:
a. Put Order Date in the Rows.
b. Put Sub-Category in the Columns.
c. Put the Profit in the Sum of Values.
After that I took these steps:
d. Sort the Grand Total of the Sub Category from largest to smallest.
e. Sort the Grand Total of Order Date from largest to smallest.
f. Filter Top 3 from the Sub-Category.
g. Filter Top 10 from the Order Date.
And the above image of an excel sheet shows my output.
Now the problem is , even though the excel sheet was supposed to show me the top 10 orders , it only manages to show 7 to 8 orders. The rest 2 to 3 of them are either blank or should not even belong to the top 10 category.
Does anybody knows why is this happening. And how can this be prevented.
Thanks.
Edit: This is how the top 15 looks like :
I believe top 10 is based on the vertical Grand Total and it should also be a subset of the top 15.
And this is the top 20 :
It looks like this is caused by opening the .xls workbook in Compatibility Mode. This means that Version 10 pivot tables are created, which have different filtering functionality to the later, Version 12 Pivot Tables.
Change the workbook to an upgraded file format (.xlsx), and refresh your pivot tables - you'll get an interesting message informing you of the changes made to Top 10 filtering, and then the multiple Top N filters will apply correctly:
Here's some more information about Pivot Table versions / compatibility, from Microsoft
Let me first say I am very new to Cognos and have mainly learned by just manipulating items within active reports. I am having an issue with creating a graph that acts like a time series. I want it to display every month (with multiple values in some months and none in others). I want to visually see gaps between data points (ex: we order products every 3 months starting in January, so we should see gaps in the months we do not order products - like February and March).
I have tried changing the label control to manual and setting display frequency to 1. However, I think my issue is that there is not any data within certain months.
You are correct in that your problem is lack of data. A standard inner join will drop rows where there is not a corresponding row in both tables, resulting in gaps.
There are two solutions available:
Use a union to create "dummy" records for each date
Manually specify an outer join between the date table and the table containing the rest of information
Since the first technique is the most common, I'll outline the basic steps for it here.
Create a new query
Add your month data item to the query
Create a 'dummy' data item for your measure. Use 0 for its expression.
If there is a date range filter in the main query apply it here
Create a union
Drag over your new query into the union
Drag over your original query into the union
Pull in the date and measure data items into the union query
Set the Aggregate Function property of the measure to Total
Use the union query as the source for your chart
For every month with measure data you will have two rows, one with the measure amount and one with 0. The two rows will be combined by the auto-group and summarize function. The measures will be added together. Anything added to 0 will end up as the original amount.
For months with no measure data, there will only be the 'dummy' row with 0 for the measure and it will be represented in your chart.
I have an Excel Power Query that imports and transforms a CSV data-transfer file from what is essentially a timesheeting web application ready for importing into our payroll application, again via CSV. Certain rows have both ‘daytime’ and ‘night-time’ hours in two separate fields. I need to transform these two fields into two separate rows adding a custom ‘rate’ field for each. To illustrate:
Name day hours night hours
A.N Other 6 4
Transforms into:
Name day hours night hours hours rate
A.N Other 6 0 6 rate1
A.N Other 0 4 4 rate2
The payroll application can only process ‘hours’ and ‘rate’ on individual rows
I have gone through the full ‘M’ specification and nothing jumps out.
I have googled and there’s lots of stuff about removing duplicates, not a lot about creating them!
To be honest, I don’t really know where to start. Any help would be warmly received.
The key step here is to select the day hours and night hours columns in your query editor and choose Unpivot Columns under the Transform tab.
This will yield:
Name Attribute Value
A.N Other day hours 6
A.N Other night hours 4
Once you do that you can create custom columns using the following rules:
if [Attribute] = "day hours" then [Value] else 0
and analogously for the night hours column:
if [Attribute] = "night hours" then [Value] else 0
From there you can rearrange, rename, and delete columns as desired.
You can also create a custom rate column with similar logic using the Attribute column or one of the hours columns.