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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.