Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I find many post on how to add colour to reports, but I can't really wrap my head around it on how I can do it in my dataset.
Hopefully someone can point me in the right directions.
I have made a weekly report that adds many rvtools reports into the dataset.
The table ends up something like this.
| Source | Server | RamGB | Date |
| rvtools-week1 | Server1 | 8 | 7/1-23 |
| rvtools-week2 | Server1 | 8 | 14/1-23 |
| rvtools-week3 | Server1 | 12 | 21/1-23 |
How can I add colour to my report. If RamGB is higher from last week, I would like the number to show up as green. If it is lower, red.
Solved! Go to Solution.
Hi @Raggsokk ,
Here are the steps you can follow:
1. Create measure.
Flag =
var _select=
SELECTEDVALUE('Table'[Date])
var _current=
SUMX(
FILTER(ALL('Table'),
WEEKNUM(_select,2)=WEEKNUM('Table'[Date],2)&&'Table'[Server]=MAX('Table'[Server])),[RamGB])
var _last=
SUMX(
FILTER(ALL('Table'),
WEEKNUM(_select,2)-1=WEEKNUM('Table'[Date],2)&&'Table'[Server]=MAX('Table'[Server])),[RamGB])
return
SWITCH(
TRUE(),
_last>_current,"red",
_last=_current,"yellow",
"blue")
2. Conditional formatting – Background color.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Raggsokk ,
Here are the steps you can follow:
1. Create measure.
Flag =
var _select=
SELECTEDVALUE('Table'[Date])
var _current=
SUMX(
FILTER(ALL('Table'),
WEEKNUM(_select,2)=WEEKNUM('Table'[Date],2)&&'Table'[Server]=MAX('Table'[Server])),[RamGB])
var _last=
SUMX(
FILTER(ALL('Table'),
WEEKNUM(_select,2)-1=WEEKNUM('Table'[Date],2)&&'Table'[Server]=MAX('Table'[Server])),[RamGB])
return
SWITCH(
TRUE(),
_last>_current,"red",
_last=_current,"yellow",
"blue")
2. Conditional formatting – Background color.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, Are you using the fabric to import the data from rvtools? or is there a template or something?
Care to share?
Thank you
We have a PowerShell script that runs on a schedule each week.
I then merge all files in the same folder in powerbi.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 5 |