Team,
I'm trying to format individual cells within a Power BI matrix table. It wouldn't be a conditional formatting because it's not based on the values of the cell, rather it's based on the intersection of my X and Y labels.
The first image is my starting matrix table and the second image is how i'd like to format the cells.
I believe you are looking for the Table Heatmap visual. it is for free. Tick the 3 dots and click "Get more visuals".
Related
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
I have a KPI which I need to conditional format based on a dynamic condition.
Example:
KPI : A
if A > Average of A in that cluster(A column present in the table) then the cell should be RED
if A lies between some values then the cell should be AMBER
if A lies below some value then the cell should be GREEN
I was doing conditional formatting by RULES prior to this but I cant seem to find an option there which can dynamically calculate the Average cluster total or Average country total and format the cells with colours.
Even if I make this DAX expression how do I put it in the table?
Also, is it even possible by DAX?
I need to create the attached graph type with the sample data set attached. Need your super power to resolve this.
Thanks in advance.
The exact chart will not be possible in Power BI. You can create a stacked column chart with a line. use min for the lower column, range for the upper column in the stack. Format the lower column white, so it is invisible. Use allocation as the line data and format the line to show no line and only markers. You won't be able to make the marker a dash in Power BI.
Hi I'm trying to create a Bar Chart like this (This chart is an illustration, not created from data yet):
If the data is being fetched from a single table, how can I have dual color scheme for bar is past and future. Also how can I place a moving marker that automatically updates the TODAY placard based on whenever the report is viewed and accordingly bars should follow the past and future color schemes.
Schema is roughly as follows:
Table1: Issue ID, Release name, issue priority
Table2: Release name, Release date
In Power BI as well as in Excel, the secret is in the data layout. You can't just have all your past and future data in two columns and magically expect that some of them will turn out red and orange instead of dark and light gray.
You will need to prep your data source to include stacked series for the light gray, dark gray, red and orange series. Stack all series on top of each other and make sure that where the red and orange series have values, there are only zero values for the gray series.
I suggest you use four columns for four stacked series and divide the values accordingly.
In Power BI, you can apply the same principle as in this Excel screenshot.
Let me know if you need help translating that to Power BI.
Edit: The Power BI data does not have to be static. You can build columns with Dax functions that arrange the data in the pattern required. Add four columns to your data model with the formulas
chtPastProdA = if(tblProducts[Date]<TODAY(),tblProducts[Product A],0)
chtPastProdB = if(tblProducts[Date]<today(),tblProducts[Product B],0)
chtFutureProdA = if(tblProducts[Date]>=today(),tblProducts[Product A],0)
chtFutureProdB = if(tblProducts[Date]>=today(),tblProducts[Product B],0)
Then build a stacked column chart and stack all four of these series. Format the colors.
For the "Today" marker you would need a custom label, which Power BI currently does not support. But since the demarcation between gray and red/yellow is today, it's quite obvious where the current date is, anyway.
After reading this thread on the official forums I still didn't see how to plot columns without aggregation, and that thread did not offer any working solution.
Is there a way in MS Power BI Desktop to simply plot one or more columns without any aggregation?
Imagine I just have a simple table, imported from csv, that has numerical values in two columns, and I want to plot those individual values in a scatter plot, which is one of the most elementary tasks possible and is simply done e.g. in Excel.
Is this not possible in Power BI Desktop?
To my surprise, this was certainly not trivial...
The only solution / workaround I found so far feels hacky, and probably doesn't scale up for too many datapoints. But here it is nonetheless.
For simple, small, whole-number datasets...
Suppose this dataset:
X;Y
1;2
1;2
1;4
3;4
4;1
1;2
4;1
2;1
Import that CSV and add a calculated column:
Label = "(" & [X] & ";" & [Y] & ")"
Now create the scatter plot with:
Legend set to Label
X Axis set to Average of X
Y Axis set to Average of Y
And you'll get this:
Not optimal, but at least it's a start for smaller datasets.
For simple, small, fractional number datasets...
The same process as above, and it'll look like this:
The legend is starting to break down and is probably best removed.
For larger datasets...
Suppose you have an Excel sheet with two columns X and Y, both with the formula =RAND() * 5. Copy paste this row to e.g. 500 rows, so you have many data points.
Load it up in PowerBI. Add the Label column like above. Add a scatter plot and drag Label to Details, and set X and Y to their respective axis. Here's the result:
It works pretty decently, I guess.