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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Bala_Robin
Frequent Visitor

Row total percentage by category by quarter

Have a dataset with unpivoted column like this

RegionSubscriptionAttributeValue
EastBronzeQ15
EastBronzeQ23
WestBronzeQ14
WestBronzeQ26
EastSilverQ110
EastSilverQ212
WestSilverQ15
WestSilverQ22
EastGoldQ17
EastGoldQ27
WestGoldQ18
WestGoldQ29

 

 

On this by quarter data in matrix using #'s can be shown without isssues as below

SubscriptionBronzeBronzeSilverSilverGoldGold
RegionQ1Q2Q1Q2Q1Q2
East53101277
West465289

 

 

but i want to see them in % by quarter like below, how to achieve this, Kindly help 

SubscriptionBronzeBronzeSilverSilverGoldGold
RegionQ1Q2Q1Q2Q1Q2
East23%14%45%55%32%32%
West24%35%29%12%47%53%

 

5 REPLIES 5
Bala_Robin
Frequent Visitor

@v-yangliu-msft and @amitchandak  - Here is the dataset, in the description, have mentioned incorrectly

 

DatasetDataset

v-yangliu-msft
Community Support
Community Support

Hi  @Bala_Robin ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _groupsum=
SUMX(
    FILTER(ALL('Table'),
    'Table'[Region]=MAX('Table'[Region])&&'Table'[Attribute]=MAX('Table'[Attribute])),[Value])
return
DIVIDE(
        MAX('Table'[Value]),_groupsum)

2. Result:

vyangliumsft_0-1693461396673.png

 

 

Best Regards,

Liu Yang

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

Thanks @v-yangliu-msft, in this custom sort needed (Bronze, Silver and Gold). Tried using sort order as column but that creates circular dependency and having another reference table (Bronze, Silver and Gold) with the sort order doesn't calculates the % (in fact it gives everything as 100%)

amitchandak
Super User
Super User

@Bala_Robin , Not able to get the logic. Please elaborate

 

Subtotal logic should help

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak  - Dataset and desired output format given in description

Helpful resources

Announcements
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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.