How to use Power BI Sparkline like Excel - excel

Is it possible to create a sparkline in power bi desktop without using date. for example I have 3 columns which have their own values. I want to show these values in a column which is a sparkline exactly like spark line in excel. I need something like this in power bi:
see this picture
How can I create it? What should be in x-axis and y-axis?
Thanks

Power Bi doesn't work on pivoted (wide) tables like Excel does, but on stacked (long) tables instead. So you have to prepare your data accordingly. You can still show it in wide format afterwards using a Matrix visual. However, to add sparklines like in your example you would need a table that is just filtering by rows. Here you can add spaklines with Value on the Y-axis and Column on the X-axis. The aggregation doesn't matter for your sample data, so leave it to Sum.

Related

How to return text on the horizontal or vertical edge of a matrix of data in excel

I have a matrix of data, with similar values across 5 columns and 5 rows. What I would like the function to do is to return the column text corresponding to where a specific value is. The matrix is dynamic, so there is no fixed cell within the matrix that contains this value, but I know the value from a separate function.
I believe what you're looking for is pivot tables. Pivot tables are super versatile and often overlooked. Here's a great resource for using pivot tables to accomplish what you're looking to achieve Create a PivotTable to analyze worksheet data.
Tip, if you're going to use a pivot table which I believe is your best solution here, remember to define your data as a table prior to creating a pivot table from it.

Excel Pivot Chart: remove zero values

I have Pivot table with one Axis field (containing 13 elements 0-12) and two Values series. One of the series (A) has 13 values. The other series (B) has only 3 elements.
When I make a pivot table, I'm able to hide the zero values using this explanation :
Excel 2010: Hide 0 values in Pivot
However when I make a pivot chart (line chart) the series B keep showing zero (or a line dropping to the x-axis). I want the line of the series B to stop when there are no values (the line should be floating on the chart).
Anyone has an idea how to achieve this ?
I faced a similar issue where the Series drops down to Zero.
I have a Pivot Chart linked to a Pivot Table with multiple Series for 7 different Key Figures & other Fields. I pick up my source data from BEx/BI using Formula to bring in some extra Columns & apply some miscellaneous formatting. This data is then forms the basis for my Pivot Table & Pivot Chart.
I found that you cannot filter the Pivot Table as the Fields do not contain items. You cannot use NA() or even "" (double-quotes) using Formula - this is because when using different kinds of aggregation within the Pivot Table the NA() cannot be SUMMED and hence the Series is not displayed. It also appears that setting a Cell to blank using "" (double-quotes) in a Formula has no effect either. I even tried #DIV/0! errors & then hiding the errors - no luck.
As a workaround, the "only" way I have found so far that works is to manually Filter my final data input for the Pivot Table by zero and then simply delete the values. Refreshing the Pivot Table then allows the Pivot Chart to hide the blanks and the data points will not be displayed. This means that any Series with intermittent values are displayed correctly.
Found a trick: in the data field use =if(x=0,na(),x/y). The graph will be fine but the table will look ugly (with #NAs). You can use conditional formatting on the table to set the font color as white when there is an error.
Voila!!!

Excel Power Pivot Time Averages

I am trying to calculate averages for time. I am using a set of data that allows me to use a pivot table to average a column formatted as "Custom h:mm:ss" or "0:13:44" within an Excel workbook.
When I import that same data into Power Pivot and attempt to do the average it tells me that the calculation cannot be completed because the data type is not supported. I noticed that the same data becomes formatted as "12/30/1899 12:13:44" in Power Pivot. Even when I change the format of the column in Power Pivot to "h:mm"ss" it will not let me do the calculation.
I am trying to figure out why the format is calculable in the Excel workbook and why it changes when I use Power Pivot. I want to be able to link to a database and create a pivot table to share. Any help would be greatly appreciated.
It might be being imported over as a text string. You can probably avoid this by converting the cell format to "number" before it is imported over.

Issues grouping in excel?

I'm having a little bit of trouble grouping dates in excel. I have created a pivot table that groups a bunch of dates between 3 months together. However, I want to take advantage of the refresh ability of pivot tables--the idea in which when you refresh your pivot table, it will update to whatever you added or took away from the source of data your pivot table is based on.
However, when I grouped the dates between three months together, I noticed if I don't add a date that exactly corresponds to the dates within the grouping, the picot table does not add that entry into the pivot table. For example, if my grouping had the following dates (between May and July) in it:
5/21/2013, 7/18/2013, 6/8/2013
And in my source data spreadsheet had the following date added to it:
5/2/2013
5/2/2013 would not be added to that specific grouping in the pivot table because it is not exactly like the other dates as stated above. I want it so that I can group all dates from 5/1/2013 to 7/31/2013 inclusively as opposed to the dates in the original grouping. Would anyone have an idea on how to do so? Thanks!
http://www.datawright.com.au/excel_resources/expanding_pivot_tables.htm
im curious as to how you are currently grouping them without adding new ones, there may be a way to work with what you already have especially if you are willing to incorporate some VBA
Provided your source 'dates' are not text Excel should be able to cope.
I fear (hope?) we were at cross-purposes about which "Group" to use. I meant the one that pops up (as on the left below) when right-clicking one of the Qtr headings in the PivotTable.
If you have access to add additional formulas in the data you could just calculate "quarter" in an additional column (reference here)
How can I obtain the year quarter from a date?
I tend to always make my groups in the rows of data like this, rather than attempt it using pivot groups. For example, you might also extract "year" with = year(A1) in the rows - so you can easily add it as a pivot row item later for grouping. If your data source is properly formatted as an excel 2007 "table" these kind of formulas will fill themselves downward when you paste new data.

Preparing Excel Pivot Table

-
I have a tabular data with values as in picture. I created a pivot table in excel 2007 .How can I get count value of each up/Down for date specified. I tried to by making one column row and other as values but it would not work.
The result would be:
A better solution is to use a countif function on a second tab. something like
=COUNTIF(Sheet1!A:A,"UP")
and
=COUNTIF(Sheet1!A:A,"DOWN")
and copy it across the range of dates.
If you can format your data differently to look like this
Then the pivot table becomes easy withthe following settings

Resources