Is it possible to display dates in power query as MMM/YY and keep it as a date format instead of text? - powerquery

My problem is that I generated a pivot chart that is showing the axis values as DD/MM/YYYY. I changed the date format for the relevant column in the power pivot manager to MMM/YY and it looks fine in there, it's displayed correctly in the pivot table as well, but not on the chart axis. I'm guessing it's because in the main query the format is stuck as DD/MM/YYYY. I also tried to format the axis to a number & date in the chart, but it doesn't react. Can anyone help please?
pivot table
pivot chart
pivot chart format settings

Related

Set data range in chart to only use values > 0 in libreoffice calc (without using a filter)

I have created a chart from a spreadsheet which contains a number of values. I want to show values in the chart where one column has values >0 and ignore the others. When I filter on the data the chart is perfect. But I would like the chart to be independent of a filter. I would prefer the chart to "self-filter".
Is this possible?
So in the above example I would like the chart to pick up the first because of the number 7 in the last column, but ignore the next entry because it has a zero in that column.

Why are the values showing up as column headers when I try to create a text table in Tableau?

I am trying to create a text table in Tableau and I want to replicate this below:
However for some reason when I have the player names as rows and distance as columns, the values are showing up as the column header (see below)
Any suggestions?
Thanks
The method you have shown in your question won't work because this is not how Tableau works.
Tableau will automatically aggregate data based on the Dimensions you add to your sheet.
If you want to have a table where the distance is listed for each player, just add the following two dimensions into the Rows, in this order:
Player Name, Distance
You will still get a third column saying Abc, but this is because of how Tableau works. You can set this Abc to become shapes if it helps make your table more user friendly.

How to integrate chart and table and make them dynamic?

I have two tables, one that shows the sales history of salespeople per year, and another table that shows the sales history in months. As you can see in the image below:
I need to create a composite chart (I believe it is a composite chart, as it will have more than 01 line) that is exactly the representation of the month table.
After creating the chart when I click on the seller Miguel for example, the chart will be rendered with the history of that seller.
And for example if I click on month 03 of the graph, the table of sellers will be rendered only with the sales that were made in month 03.
I don't know how to do it, I managed to create a composite chart that presents the same data as the month table, however, I was unable to integrate my chart together with my tables.
Can you tell me how I can do that?
I put the codes I made in JSFiddle, here are the links:
Sales/Month Table: https://jsfiddle.net/bernalvinicius/ejxcfpvz/15/
Month Chart: https://jsfiddle.net/bernalvinicius/kanm158j/17/
Thanks in advance.
Just put all your code in the same file(s), combine your crossfilter instances, and put all the charts in the same chart group (the default), and it should work fine.
The chart group is the second parameter to each chart constructor. If it's not specified, then the chart goes into the default chart group.
When any chart is filtered in a chart group, it will tell all the other charts in that chart group to redraw, and they will pull their new data from their respective crossfilter groups. (Sorry about the naming, a dc.js chart group has nothing to do with a crossfilter group.)
In order to combine your code, I renamed both of the crossfilter instances to cf. Then I added the new fields you are generating to the existing rows, instead of mapping the data:
data.forEach(d =>
Object.assign(d, {
mes: d.Month,
atual: d.Vendas_Ano,
passado: d.Vendas_Ant
})
);
In your table fiddle, you were initializing the table for every row in the data with a data.forEach() which wasn't necessary. That's why it was so slow to load.
Other than that, both fiddles had the same general structure so I just copied and pasted the code from the table fiddle to the composite fiddle, HTML, JS, and CSS.
In the JS I made sure to put the same lines outside and inside the d3.json() callback as before.
It looks like it works?
https://jsfiddle.net/gordonwoodhull/0q1y5ftr/15/

SSRS bar chart has column for date that's not in the data

I'm creating a bar chart based on the year of the date field. There is no data with a 2019 date. The bar chart includes a year column for 2019. How can I remove this empty column?
You will usually see this when the Axis type is set to Scalar (Numbers/Dates).
There are a few ways to fix this but the easiest are...
if your year values are simply numbers then you can set the axis type to Category via the UI or set the Scalar property to False
If the above is not suitable for you then set the HideEndLabels property to True (also available via the UI on 'Labels' tab)
Change the Axis type to Category.

How do I change the orientation of a table in a BIRT report

I need to change the orientation of a table in a BIRT report so that the table header is vertical instead of horizontal.
Is this possible? I don't want to use a Crosstab.
It seems this thread is still being pointed at so I posted an example of a horizontal table layout using a crosstab. I know it won't help the original author but others following this thread now may find this helpful.
To create the horizontal grouping, first create your query like normal, then create a Data Cube. In this data cube, drag each field that you want into a group. Then drag a new crosstab on the report and drag each field into the top right column group area. It will create a new header row for each field. Don't put anything in the left side (Rows) and don't put anything in the measure field (bottom-right). This will create labels on the left... and the data will extend out to the right.
The report design example can be downloaded from: http://developer.actuate.com/community/forum/index.php?/files/file/1079-horizontal-table-using-crosstab/
Virgil
If you want dataset records to be reported across the page, this would have to be done via a crosstab.
If you want dataset records to be reported down the page, this can't be done automatically as far as I know. However, it can be done by inserting a new detail line in your report table object for each database field to be reported, then moving column headings from the heading row into the first column's detail rows and moving record values into the second column's detail rows.
So, for example, a report with 6 columns in it would become a two column report with six detail rows.
Not in box (up to 3.7). You have to use 3'd party libs like that one.

Resources