Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 46 | |
| 42 | |
| 34 | |
| 31 | |
| 21 |
| User | Count |
|---|---|
| 143 | |
| 125 | |
| 100 | |
| 81 | |
| 63 |