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
theybasar
Helper II
Helper II

ANY IDEA HELPS, PLEASE

Simple requirment is we need to create a visualization that it will have two variables: 

 

1- Error Rates (  0-5 (green), 5-20 (yellow), 20-50( orange), 50-100( red))

2. Date (mm/dd/yyyy)

 

So, this visualization has to display everyday different color depend on Error Rate. I thought Brick Chart visualization is the right one, but I could not do it and now I wonder if anyone is rellay can help me for this problem. 

 

Thank you 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@theybasar,

Have you tried any of the custom Calendar visuals?

rsbin_0-1642797065274.png

 

View solution in original post

12 REPLIES 12
rsbin
Super User
Super User

@theybasar,

Have you tried any of the custom Calendar visuals?

rsbin_0-1642797065274.png

 

Did not know it and helped me a lot

SteveHailey
Solution Specialist
Solution Specialist

Hello @theybasar. You can use a simple Table visual, and use Conditional Formatting to change the background color of the error rate.


The conditional formatting parameters would look something like this:

SteveHailey_0-1642793555871.png

And the results would look like this:

SteveHailey_1-1642793595401.png

I created a sample .pbix and it is linked here, in case it's helpful.


Here's a link with more info about conditional formatting. The "Color by rules" section would be most relevant here.

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

 

-Steve

@SteveHailey Thanks for reply, I have done it but they did not want simple table so that I am really into something little different. Any other idea? 

Perhaps a bar chart? 

 

SteveHailey_0-1642796482025.png


To format the bars, I created a Measure as seen below:

Error Rate Formatting for Bar Chart = 
VAR ErrorRate = SELECTEDVALUE( Data[Error Rate] )
VAR Result = 
SWITCH(
    TRUE(),
    ErrorRate < 5, "Green",
    ErrorRate < 20, "Yellow",
    ErrorRate < 50, "Orange",
    "Red"  
)
RETURN Result

And then set the column color formatting to that measure:

 

SteveHailey_1-1642796632505.png

 

TomMartens
Super User
Super User

Hey @theybasar ,

 

consider creating a pbix that contains sample data, but still reflects your data model (tables, relationships, calculated column, and measures), upload the pbix to onedrive or dropbox and share the link.

If you are using Excel to create the sample data instead of the manual input method share the xlsx as well.

 

Describe the expected outcome based on the sample data you provided.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

 

 

@TomMartens  it is like that data. 

 

 

error rate pic.PNG

<top> Here link and I hope you will see it. 

Hey @theybasar ,

 

the link requires a login, I will not do that!

Consider providing a link that allows accessing the file without login.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Good morning @TomMartens , 

 

I am sorry, I did not see it was a private share. Here is the link and anyone can edit and see it.  Looking forward to hearing from you hopefully very soon.

 

https://docs.google.com/spreadsheets/d/1gb8HH7ZCOyXg4oaFFhyV0L1AMgYQvVa7/edit?usp=sharing&ouid=11842... 

 

Thank you, 

Yavuz

Hi @theybasar ,

 

I quite agree with @SteveHailey 's workaround. If you also want other visuals, I found this for you, I don't know if you are satisfied. It's called Calendar by Tallan.

vstephenmsft_0-1643095664571.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@TomMartens thank you so much. I will share it.

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.