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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RAHULBANDI
Helper II
Helper II

***Gauge Chart***

Hi Team,

I have Following Data-set

Hospitals

Abn Group

CCAD

NMC Group

Imperial College

Prime Healthcare

 

I have inserted this Hospitals data in to  slicers

My requirement is when

i select 1 data point in Hospitals it should show 20% in guage chart

if i select 2 data point in Hospitals it should show 40% in guage chart and so one........

Please look into this

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @RAHULBANDI ;

Try it.

Measure = DIVIDE( COUNT(Test[Hospitals]),CALCULATE(COUNT(Test[Hospitals]),ALL(Test)))

Then change the type of this meausre.

vyalanwumsft_0-1663657728794.png

The final show:

vyalanwumsft_1-1663657746860.png

vyalanwumsft_2-1663657756874.png


Best Regards,
Community Support Team _ Yalan Wu
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

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @RAHULBANDI ;

Try it.

Measure = DIVIDE( COUNT(Test[Hospitals]),CALCULATE(COUNT(Test[Hospitals]),ALL(Test)))

Then change the type of this meausre.

vyalanwumsft_0-1663657728794.png

The final show:

vyalanwumsft_1-1663657746860.png

vyalanwumsft_2-1663657756874.png


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

Greg_Deckler
Super User
Super User

@RAHULBANDI Try a measure like this:

Measure = 
    DIVIDE(
        COUNTROWS(SUMMARIZE('Table',[Hospitals])),
        COUNTROWS(SUMMARIZE(ALL('Table'),[Hospitals]))
    )

@ 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...

Hi 

Thq for your Reply

I have tried ur measure, but it s showing like this

RAHULBANDI_0-1663513451278.png

 

I'm looking for 20%, 40%, 60% etc;

and i need the Gauge chart to fill accordingly

I have taken min = 1, max = 10

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.