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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Maheshguptaz
Helper III
Helper III

Need help

Hi,

I'm trying to show values in clustered column chart in the below manner.

Maheshguptaz_0-1647330891183.png

 

 

My client wants to see 100% for each Market listed in the chart instead of showing 100% for all markets. The value is derived from the Count of emps.

 

Any help on this would be really appreciated!!

Regards,

Mahesh

1 ACCEPTED SOLUTION

Hi, @Maheshguptaz 

 

I briefly simulated some data to hopefully fit your needs.

Measure:

Percentage =
DIVIDE (
    CALCULATE (
        COUNT ( 'Table'[Emp ID] ),
        FILTER (
            ALL ( 'Table' ),
            [Market] = SELECTEDVALUE ( 'Table'[Market] )
                && [Emp ID] = SELECTEDVALUE ( 'Table'[Emp ID] )
        )
    ),
    CALCULATE (
        COUNT ( 'Table'[Emp ID] ),
        FILTER ( ALL ( 'Table' ), [Market] = SELECTEDVALUE ( 'Table'[Market] ) )
    )
)

vzhangti_0-1648024086650.png

Is this the result you expect, showing 100% by each market?

 

Best Regards,

Community Support Team _Charlotte

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

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @Maheshguptaz 

 

Can you provide some of the example data for testing? What do you expect the results to look like, and can you also show them in pictures?

 

Best Regards

Hi @v-zhangti ,

 

As you can see in the picture I posted in my message, I'm % of emps in each market. I didn't create any measure for this. I used the count of emps and showed the value as %GT of Emps on the chart.

 

The new requirement is that I need to show % of emps as 100% for each market instead of segregating the total value across markets.

 

Below is a measure that can help me do that but I'm looking for something more dynamic which can be used for all markets in a single measure.

 

Buildings = calculate( Count(Emp ID), Market = "Buildings")

Please let me know if we have a way to do this calculation for all markets in a dynamic way.

 

Regards,

Mahesh

Hi, @Maheshguptaz 

 

I briefly simulated some data to hopefully fit your needs.

Measure:

Percentage =
DIVIDE (
    CALCULATE (
        COUNT ( 'Table'[Emp ID] ),
        FILTER (
            ALL ( 'Table' ),
            [Market] = SELECTEDVALUE ( 'Table'[Market] )
                && [Emp ID] = SELECTEDVALUE ( 'Table'[Emp ID] )
        )
    ),
    CALCULATE (
        COUNT ( 'Table'[Emp ID] ),
        FILTER ( ALL ( 'Table' ), [Market] = SELECTEDVALUE ( 'Table'[Market] ) )
    )
)

vzhangti_0-1648024086650.png

Is this the result you expect, showing 100% by each market?

 

Best Regards,

Community Support Team _Charlotte

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

amitchandak
Super User
Super User

@Maheshguptaz , a new Measure

 

assume you have measure for which you want this %

 

divide([measure], calculate([measure], removefilters(Table[Legend Column]))

 

Use the legend column in remove filters

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak there's no measure created for this. We're showing the % of grand total in the chart

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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