Power BI - Matrix dimension based on multiple slicer selection - matrix

I would like to give the user the possibility to choose in which column the element from dimension table will appear in the matrix. That is why I created three slicers for each position of matrix table. If the user selects BMW from Slicer 1, I expect that this element will appear in the first column of the matrix. The same applies to Slicer 2 and Slicer 3. The user can select any and only one element from each slicer. So applying alphabetical order or any other predefined rule is not possible. I assume I need a UNION of all selected values that I can use as a column dimension in the matrix.
I tried to use calculation groups. I am able to define calculation items that take selected value from each slicer. That works fine, but the calculation item's name (that is shown as the header of column) is static. I also tried to use dynamic textboxes that I positioned over the column headers. However, they don't move with scrollbar on the matrix if we enlarge our example to more than only 3 column (e.g. 10).
Any ideas? Anything is appreaciated.

Related

Using a filter with a spill range as criteria

I have a sheet using a spill range of product groups. However the groups are relatively detailed. IE: Pencils Black, Pencils Green, Pens Black, Pens Blue. There are 57 different detailed groups.
I have a table that lists these items and concise groups. IE: Pencils Black = Pencils, Pens Black = Pens, Erasers = Misc. There are only 4 final groups.
I am trying to filter the Item Group table using the spill range (it's one column of data) as criteria and I get a #N/A error.
Here is the formula: =FILTER(tblItemGroup[Item Group],tblItemGroup[Item Kind & Level 1]=D8#)
If I change the formula to the cell reference (D8) instead of the array, it works fine but only for that row. I can copy that formula but then it is not dynamic and that will affect other calculations.
But I need these results to be dynamic as the amount of rows will vary based on another selection on the sheet (Salesman).

Using the ComplexHeatmap package, can I make it so that certain columns have a different color scale than others?

I have a data matrix with 20 columns.
I am easily able to create the heatmap and determine a color scale.
HOWEVER, I want to create a single heatmap- where specific columns have specific color scales
I want columns 1,3,5,7,9,11,13,15,17,19 to be one color scale.
and then columns 2,4,6,8,10,12,14,16,18,20 to be another color scale.
They would ultimately be the same scale.. 0 to 1. but i want a constrast between the columns because they represent two different groups.

fake group and filtering dc.js

I have had to create a cumulative sum group and a remove_zero group for my project.
The issue arises when I combine them and filters on another dimension. It looks like the filter is not taken into account in my cumulative sum fake group.
I have put everything into this jsFiddle.
When filtering on age by clicking on the barchart on top (only the 1w will do something), both line charts at the bottom should have the same date span if I understand correctly since they're using the same dimension. But that does not happen. The top one does not rescale at all while the bottom one does.
The only difference between the 2 line graphs (that I can see) is in the group definition :
top one :.group(remove_zero_values(cumulSumGroup(groups.date.TOTAL_PNL)))
bottom one :.group(remove_zero_values(groups.date.TOTAL_DELTA))
My question is : how do I make sure that the top line graph also filters on dates when I click on the top bar chart ?
If you are combining cumulative sum with filtering zeros, you will want to filter the zeros first:
.group(cumulSumGroup(remove_zero_values(groups.date.TOTAL_PNL)))
Otherwise, each bin will inherit a value from the last one, and very few of them will remain zero.
Fork of your fiddle.

Tableau Remove extra space within sheet border

I am creating sheet with rows of Sale Sums and Columns of each month. Firstly, I am trying to remove this extra whitespace within the boundaries while keeping the squares the same size. I would like the squares of data to take up the entirety of the region. Also, I have tried creating lines to separate each row but adding grid lines creates lines going through the squares.
go to format > borders
select none in columns
select none in rows

Merging header in Matrix

I want to merge the blue area of my matrix:
When selecting these 3 cells and right-clicking on them, I don't see the merge option, as described here: https://msdn.microsoft.com/en-us/library/dd207131.aspx
This can't be done as you're trying to merge cells in your Column Group (qwesa) with cells outside that group (gdfr). I assume you need to use a matrix for your report, hence the column grouping.
Please see the MSDN reference on Merging Cells in a Data region, which states
Cells can only be merged within each area of a data region: corner, column headers, group definition (or row headers), and body. You cannot merge cells that cross area boundaries. For example, you cannot merge a cell in the data region corner area with a cell in the row group area.
If you do not need column groups, you should instead use a tablix where the desired merging options is available.

Resources