How to 'hide' column in Matrix Visual if no field parameter is selected - powerbi

I'm trying to create a fully customizable matrix table in Power BI.
The matrix has field parameters for rows, columns and the values:
Is it possible to hide the columns if nothing in the column field parameter is selected? (and thereby only show values and rows in the matrix visual)
I've found a workaround that I fear is not intuitive for the user.
For the column field parameter, if I select one of the dimensions as is already selected as a row dimension, the columns will disappear and only the selected value along with the selected rows will be shown (exactly how I want it):
The issue with this method of hiding the columns is that as soon as something else is selected as rows, the columns will appear again. One could just select the same new row dimension for the columns to make them disappear again, but I want to know if there is a better way that might be more intuitive for the user.
An alternative solution is to use bookmarks to switch between a matrix and table visual, but I would like to know if my goal can be achieved with a matrix visual.

Related

Is it possible to recreate this visual in Power BI?

I currently have a report that kind of looks like this in Excel. Is it possible to create the same structure with the color formatting in Power BI? Especially with the Percentage Sale and Sales Amount below each other in the row?
I tried using Matrix visual but I kind of run into a problem since the columns would have different format types - whole number and percentage. Also tried with showing columns in rows, while using Percentage Sale and Sales Amount as two columns. But then I would have problems with the color formatting. Any ideas how to achieve it in Power BI?
Its actually simple ..... just follow these steps
1.) You can use matrix or table both... but I preferred tables
2.) Go to format Visual (In visualistation you can see 3 option... its the middle one)
3.) After that click on values.
4.) Now you can se background color , alterante background color etc
5.) Just choose it acc to preferences
If you want a bar label in a selected column then,
6.)In build format, right click on your column (which you want to customize)
7.)Select conditional formatting
8.)Now you can change color
9.)apply this. After that you can see your data of selected columns are showing grid bars

Requery when selecting area in PowerBI map

I have a map that does not shows all points from my dataset (too many, its an expected behavior). If I filter the data, Power BI recalculates the points to be shown, while ALL filtered data (not only shown) are used for any other calculations or visuals. But, if I make an AREA selection IN MAP (lasso selection), only the selected points I can see in map are used for thhese calculations.
Is there a way to FILTER AND RECALCULTE the dots IN SELECTED AREA? I mean, use the lasso selection not to mark specific poits, but to filter values in latitude/longitude selected range.
Thanks!

how to Switch off Per row level subtotals dynamically for a Matrix in power bi

We have Matrix where Per row level subtotal is Switched on for only one Row and for rest of the rows its turned off. Its good up to here.
Issue:- When a user adds a new column to the matrix then by default the subtotal is on for the newly added column. is there a way to dynamically turn off for the newly added columns ?
We have to use ISFILTERED of any row context, example I have Date as rows in Matrix, I can use measure for IF(ISFILTERED('Dates'[Date]),sum/values(that new column),blank()).
this means we are restricting the newly added column to only row level data and total
of the matrix is converted to blank value.

what is the difference between a calculated column and a measure?

Could you please help me understand the conceptual difference?
When do we use one over the other and how they are included in the data model?
Measures, calculated columns and calculated tables all use Data Analysis Expressions (DAX).
Calculated columns work in the horizontal direction of a table
and they add a value to each row of the table that can later be used
for filtering, e.g. on the axis of a diagram.
Measures work in the vertical direction of a table since they aggregate or summarize the values in a column. They are typically the contents of a diagram.
Both calculated columns and tables will add data to the model, just like the M-code in PowerQuery does. This data is recalculated on model refresh and otherwise won't change. In contrast measures add formulas only that will be calulated depending on the filter context.

PowerBI Matrix Visual sorting

I created a Matrix visualization.
Rows: item number
Columns: year-month
Values: Stock value, an stock value2
How can I sort the stock value2?
The Little triangle is not there to do it.
Once i remove the month columns i can sort them but it is not the solution what im looking for. I want to show the top 0-20
In a Matrix Vis you cannot sort on the column (in your case year-month), this has all to do with the fact that this is dynamic created. When you change your row values of year-month, you have more or less columns. For this reason it is not possible to select the column for sorting.
You could think about creating a cross-table based on your data and then use the table visual.