Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Color transparency in Textbox in Ssrs Report

Posted on by

Hi,

I want to add a color transparency in textbox on ssrs report on the basis of qty. Sample has been attached.

Any suggestion or anyone familiar with this would be appreciable.

Regards,
Zohan

*This post is locked for comments

  • Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: Color transparency in Textbox in Ssrs Report

    Hi Zohan,

    Your problem is solved?Right?

  • Zohan Profile Picture
    Zohan on at
    RE: Color transparency in Textbox in Ssrs Report

    Do visual Studio 10 version also contains this data bar property ? What i've seen there's no such property related to data bar exists in visual studio 10 version

  • Verified answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: Color transparency in Textbox in Ssrs Report

    Hi Zohan,

    Using Sparklines & Data Bars to Visualize Data in SQL Server Reporting Services Reports

    dynamicsinsights.com/.../using-sparklines-and-data-bars-to-visualize-data-in-sql-server-reporting-services-reports

  • Suggested answer
    guk1964 Profile Picture
    guk1964 10,877 on at
    RE: Color transparency in Textbox in Ssrs Report

    When you click view the cell's properties in the property window, there should be a Background Color property. Then you can create conditions. e.g =IIF(Fields!Column.Value = "Approved", "Green", "No Color") Here is an example:: 

    =iif(Fields!Date.Value < today() AND Fields!ID.Value = "a", "RED",

    iif(Fields!Date.Value < today() AND Fields!ID.Value = "b", "BLUE",

    iif(Fields!Date.Value >= today() AND Fields!ID.Value = "a", "GREEN",

    iif(Fields!Date.Value >= today() AND Fields!ID.Value = "b", "YELLOW","WHITE"))))

    This checks the date value of "Date" and compares it to today, as well as the text value of "ID" and compares it to "a" or "b".

    If the text value is a and the date is before today, make the field red, if its b and before today, then make it blue. If the date value is today or later and the text value is a, then make it green and if the date value is today or later and the text value is b then make it yellow. If none of the conditions match, then make it white.

    However when you have many conditions you might prefer 'switch' logic:

    =switch( Fields!Date.Value < today() and (Fields!ID.Value = "a" or Fields!ID.Value = "c"), "red",

    Fields!Date.Value < today() and (Fields!ID.Value = "b"), "blue",

    Fields!Date.Value >= today() and (Fields!ID.Value = "a" or Fields!ID.Value = "c"), "green",

    Fields!Date.Value >= today() and (Fields!ID.Value = "b"), "yellow")

    etc 

    (Why not create the report in Excel which has such conditional formatting features?)

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: Color transparency in Textbox in Ssrs Report

    This isn't transparency. If you set background transparency based on the value, the background would have a solid color across the whole cell, which would be more or less transparent.

    What you're talking about are data bars.

  • Zohan Profile Picture
    Zohan on at
    RE: Color transparency in Textbox in Ssrs Report

    color.jpg

    I was talking about this. Color transparency depends on textbox Field quantity

  • Zohan Profile Picture
    Zohan on at
    RE: Color transparency in Textbox in Ssrs Report

    There might be some problem with attachment.

  • Zohan Profile Picture
    Zohan on at
    RE: Color transparency in Textbox in Ssrs Report

    Yes exactly but color temperature graph should be based on quantity of that textbox.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans