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
Hey guys, could anyone tell me what Im doing wrong in this code that it also colours the first row? it doing fine with the rest of it, but it also colors the first row even tough im only asking for the last two.
Solved! Go to Solution.
Hi @Anonymous ,
Try to use conditional formatting in table visuals:
First create a measure such as below:
Measure = IF(MAX('Table'[Type]) in {"2021 FAKTAS","2021 PLANAS","2020 FAKTAS"},3,
IF(MAX('Table'[Type]) in {"POKYTAS NUO 2021 PLANO"}&&MAX('Table'[value])>0,2,
IF(MAX('Table'[Type]) in {"POKYTAS NUO 2020 FAKTO"}&&MAX('Table'[value])>0,1,0)))
Then create a rule as below:
And you will see:
Below is a related reference:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
For the sample .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@amitchandak Thank you so much for your help, but the issue still there. Tried changing to different colors, name it and etc.
Hi @Anonymous ,
Try to use conditional formatting in table visuals:
First create a measure such as below:
Measure = IF(MAX('Table'[Type]) in {"2021 FAKTAS","2021 PLANAS","2020 FAKTAS"},3,
IF(MAX('Table'[Type]) in {"POKYTAS NUO 2021 PLANO"}&&MAX('Table'[value])>0,2,
IF(MAX('Table'[Type]) in {"POKYTAS NUO 2020 FAKTO"}&&MAX('Table'[value])>0,1,0)))
Then create a rule as below:
And you will see:
Below is a related reference:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
For the sample .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 64 | |
| 58 | |
| 31 | |
| 25 | |
| 25 |