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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Dineshkumar91
New Member

How to create Gauge Chart with Filters.

Hi,

 

I have a set of data in which it has 100 rows filled with repeated names. I need to create a Gauge chart with the below condition. Please help me to get it solved as I am new to Power BI.

 

Condition: Value = count of filtered name / total count (i.e. 100)

 

For example: I have 100 rows with names as A, B, C, D & E which are repeatative. If count of A is 26, then value = 26/100 = 0.26, this should go as data for "Value" field while creating Gauge Chart. I will be having silcer to select the required option to know the value.

 

 

1 ACCEPTED SOLUTION
Alf94
Super User
Super User

Hi @Dineshkumar91 ,

 

I tried to create your model with the following data (only 10 rows but the idea remains the same):

 

Alf94_0-1695808238814.png

 

Here is what I can get:

 

Alf94_1-1695808283027.png

 

The measure I used is as follows:

 

 

# names = 
    DIVIDE(
        COUNTROWS( 'Table' ),
        CALCULATE(
            COUNTROWS( 'Table' ),
            ALL( 'Table'[Name] )
        )
    )

 

 

If I answered your question, please mark my post as a solution.

 

Best,

View solution in original post

2 REPLIES 2
Alf94
Super User
Super User

Hi @Dineshkumar91 ,

 

I tried to create your model with the following data (only 10 rows but the idea remains the same):

 

Alf94_0-1695808238814.png

 

Here is what I can get:

 

Alf94_1-1695808283027.png

 

The measure I used is as follows:

 

 

# names = 
    DIVIDE(
        COUNTROWS( 'Table' ),
        CALCULATE(
            COUNTROWS( 'Table' ),
            ALL( 'Table'[Name] )
        )
    )

 

 

If I answered your question, please mark my post as a solution.

 

Best,

Thanks @Alf94 for the solution. Cheers.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.