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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Custom Visual

is there a custom visual like the Average pH visual below :
WhatsApp Image 2025-01-16 at 1.25.30 PM.jpeg

 

1 ACCEPTED SOLUTION

hi @danextian @Uzi2019 ,

thank you guys for the help, i was able to achieve exactly the needed visual by using a constant reference line for the threshold, and used 2 calculated columns to get the white bars in the stacked bar chart, first calculated column is :
14 - 'table'[pH column]
Second is:
'table'[pH column] - 14

14 is the max ph level.
here is the result:
Screenshot 2025-01-16 162735.png

you then change the 2 calculated columns's colors to white and the main measure which is the average pH to green or whaever you desire

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @Hussein_charif 

 

You can use error bars but it is not going to be perfect. In the sreenshot below. I am using the same measure for the upper and lower bounds.

danextian_0-1737030830632.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

hi @danextian @Uzi2019 ,

thank you guys for the help, i was able to achieve exactly the needed visual by using a constant reference line for the threshold, and used 2 calculated columns to get the white bars in the stacked bar chart, first calculated column is :
14 - 'table'[pH column]
Second is:
'table'[pH column] - 14

14 is the max ph level.
here is the result:
Screenshot 2025-01-16 162735.png

you then change the 2 calculated columns's colors to white and the main measure which is the average pH to green or whaever you desire

Uzi2019
Super User
Super User

Hi @Hussein_charif 

 

You can simply

1)add stack column chart 

2) add your PH column in Y axis

Uzi2019_0-1737029498118.png

 

 

3) then go to analytics pane

4) add constant line

Uzi2019_1-1737029546692.png

 

 

5) on Fx add your value. and set summarization to Average

Uzi2019_2-1737029617036.png

 

 

that's it. you PH chart will be ready with few tricks to constant line

 

Uzi2019_3-1737029707747.png

 

 

@Hussein_charif 

Match your average line color to background color

Uzi2019_4-1737030022747.png

 

 

 

I hope I answered your question

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.