PowerBI: add conditional formatting for a row in matrix - powerbi

How can I add a conditional formatting or a highlight for a specific row in matrix? in the below example 'Avg' is from the data not a calculated in pbix - How can I highlight this entire row?
enter image description here

Related

How to calculate the index field for this table?

I have to calculate the following Index field on Superset?
Pivot Table Image
Data Definition:
Column B: Spend
Column C: Revenue
Column D: ROAS (this is calculated as follows: Column C/Column B)
Column E: ROAS Index (this is where i need the help, please find the calculation below)
Calculation for ROAS Index:
Divide the row level ROAS by the total ROAS. As per the screenshot, for the cell E38 the calculation would be D38/D53.
This calculation has to done dynamically, so the value can be calculated based on the filter selections.
Complexity:
Individual table with this view cant be used, as there are other dimensions on filters which will have impact on the value's granularity.
Thanks,
Prem
Tried writing calculated fields, but cant figure out the approach

Clean Data in Power BI

i need help on cleaning this data. Currently I've no idea to clean this kind of data. I want to clean based on month and total per supplier. Thanks
Select the first 2 columns [No] and [Supplier]
On the tab Transform drop down Unpivot Columns and click on Unpipot Other Columns
This converts your wide pivot table into a long, stacked format that is ideal for further processing.
Another way you can achieve this is
Select all the date columns.
Click on the transform tab, under any column section, click on unpivot only selected columns
Kindly rename the Attribute column to date
If you need to split the date column into month and year
4. on the transform tab, under the text column section, click on Split Column, select "by delimiter" on the dialog box, select split at the left-most delimiter and click ok.
You will have your month and year columns as shown below
if your value column holds figure for amount/money you can transform the data type and replace the null values with zero using the replace values function when you right-click on the values column.
I hope this helps

How to get the sub heading column in Power BI?

The above is the expected matrix in Power BI. I have to get the additional heading "MED" and "RX" for the columns "Paid" and "Unpaid" as shown in the matrix.
The above is the actual table schema, which is connected to get the data into the matrix.
How to get the column heading "MED" and "RX" in Matrix?
You should put MED/RX and Paid/Unpaid attributes in separate columns, so make sure the data is transformed to look like this:
Then put Insurance to the rows of the matrix, Type and Paid as columns and Values as values, and enable the drill mode:

How to sum a column filtered by a categorical column in the same table in Power Bi?

I'm trying to get a sum of my sales figures by the product category from the a column in the same table
The original data is on the attached image.
Original Data
And what I'm trying to get is attached also and I am having trouble getting the right numbers for the last three columns
Result
I have tried the following code:
Boots_Sales = CALCULATE( SUM(Sheet1[Sales]), FILTER(Sheet1,Sheet1[Product_Type]="Boots"))
I have found a solution to the above by making a measure instead of a column with the below formula:
boot1 = CALCULATE(SUM(original[Sales]),FILTER(original,original[Product type ]="Boots"))
This will have to do, I was trying to make a column because I wanted to do further calculations on the column but will just have to convert the measure into a column
Thanks

Adding a Total Column to a Matrix-Visual that only sums spcific columns

I have a table that has (simplified) the columns CustID, Action, Date
I then have a matrix visual that has Action as Columns, CustID AS Rows and Count(Action) as Values.
Now I need an extra column that sums only some of the Columns, not all like the Total. In Excel this is =SUMME(B11:K11), where K12 and K13 are the columns not to be summed.
Is this possible in PBI Matrix?
You can simply create a measure.
(new_measure_name) = 'table'[field to add] + 'table'[field to add]
After you create the measure you can add it to the matrix and double check you math that it adds up like you want.
Good luck!
my problem was, that I had a table column in the column section of the matrx visual. than, when I add a measure it is only available in drill, not as extra column. I solved it with pivoting that column and use the new columns in data section. than I can add measures to the data section and they get also new columns.
would be nice, if I could use the column section and add measures