Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 43 | |
| 35 | |
| 30 |