Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rilimonv
Employee
Employee

Conditional formatting on cards not working when I publish

Hi all,

I have several "card" visuals in my power Bi report, which sow sales and variances to budget and forecast. I added conditional formatting so that it would turn red if the number<0, and green if it is >0. 

How I formatted these cards is: Clicked on the card visual, then under visualizations, clicked on format, then on background, and besides the word "color" theres 3 dots. I clicked there and selected conditional formatting:

image.png

This works fine in Desktop, but when I published, for some reason all cards appear white, with no background (i.e conditional formatting not working). 

I looked in the report while online to see if the conditional formatting is still there, and it is. this is a screenshot taken while looking at the published report:

 

image.pngDoes anyone have any idea as to why this might be happening?

 

Thanks!

 

1 ACCEPTED SOLUTION

Hi , @rilimonv 

I tested it again in msit today, and the problem seems to be fixed.

Is it resolved on your side?

 

76.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

12 REPLIES 12
ShaoyuHung
Helper I
Helper I

Unsolved so far.

Conditional formatting working on Power BI Desktop , but not working on Power BI Report Services , 

Does anyone have any idea as to why this might be happening?

 

Thanks!

v-easonf-msft
Community Support
Community Support

Hi , @rilimonv 

Unsolved so far.

And you also can follow these issue post:

https://community.powerbi.com/t5/Issues/Card-backgrounds-with-conditionally-formatted-colours-not/id...

https://community.powerbi.com/t5/Service/Conditional-Formatting-on-Service-suddenly-disappeared/m-p/...

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-easonf-msft
Community Support
Community Support

Hi , @rilimonv 

 

For the issue, I cannot reproduce it here.It works well in my powerbi service.

29.png

30.png

 

Can you use my pbix file to test it again  in your powerbi Service?

Pbix attached

 

What connection mode you are using and what type of your datasoure?

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-easonf-msft  thanks for sharing. I continue to have the same issue - works fine in Power Bi desktop but once I publish, the card won't pull the conditional formatting.

I am connected to a server using analysis server, and then to a dataset which is a cube.

 

image.png

 

 

@v-easonf-msft 

I should add that in the same report, i have a matrix with conditional formatting and it works fine both in powerbi desktop as well as when i publish. the issue seems to be only with the cards.

Hi , @rilimonv 

Can you tell me your tennant (Where is your date stored in)  and  your PowerBi Service version.

Please find them  in powerbi service "help and support"  -> "About PowerBI"

33.png

 

Best Regards,
Community Support Team _ Eason

@v-easonf-msft 

Hi. 

Service version13.0.12816.122

Your data is stored inWest Central US (MSIT)

 

Is this what you need? Let me know if you need something else

 

Hi , @rilimonv 

I tested it again in msit today, and the problem seems to be fixed.

Is it resolved on your side?

 

76.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-easonf-msft Hi! Yes! it has been resolved. thanks for your support!

Hi @rilimonv 

I want to know what is your solution? Because I also encountered a similar problem. Can you share it? Thanks a lot.

 

Best Regards

Community Support Team _ Ailsa Tao

Hi , @rilimonv 

I understand and can reproduce your problem.

If we have any conclusions on this topic ,I will post back .

 

Best Regards,
Community Support Team _ Eason

Greg_Deckler
Super User
Super User

You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.