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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jane24
Regular Visitor

Percent of column total in Clustered column

Hi everyone,

could you please help me to get this kind of graph?CCY basket.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In power BI it is possible just % of GRAND total visualization, but I need to calculate : (Amount in EUR of each currency / total amount in a month). This calculation is possible just for Matrix, but it is impossible to visualize it in a Clustered column. 

 

The background data looks like that:

image.png

Many thanks, I am starting to be a quite desperate :).

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

HI @Jane24,

 

Current power bi not contains visual which support to display percent and clustered column bar at same time.

In my opinion, I'd like to suggest you use clustered column chart to create chart, then write a measure to calculate different group summary value and get percent.

 

Sample measure:

Percent=
DIVIDE (
    CALCULATE (
        SUM ( 'Table'[TRXamt] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Month] IN VALUES ( 'Table'[Month] )
                && [CCY] IN VALUES ( 'Table'[CCY] )
        )
    ),
    CALCULATE (
        SUM ( 'Table'[TRXamt] ),
        FILTER ( ALLSELECTED ( 'Table' ), [CCY] IN VALUES ( 'Table'[CCY] ) )
    ),
    0
)

1.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @Jane24,

 

Current power bi not contains visual which support to display percent and clustered column bar at same time.

In my opinion, I'd like to suggest you use clustered column chart to create chart, then write a measure to calculate different group summary value and get percent.

 

Sample measure:

Percent=
DIVIDE (
    CALCULATE (
        SUM ( 'Table'[TRXamt] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Month] IN VALUES ( 'Table'[Month] )
                && [CCY] IN VALUES ( 'Table'[CCY] )
        )
    ),
    CALCULATE (
        SUM ( 'Table'[TRXamt] ),
        FILTER ( ALLSELECTED ( 'Table' ), [CCY] IN VALUES ( 'Table'[CCY] ) )
    ),
    0
)

1.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.