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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
NewbieJono
Post Partisan
Post Partisan

% Of total

Do you have any ideas on how I display the drill down as a percentage of the date total? e.g 

 

0-1 days - 42706 as a percentage of 42764

1-2 days 58 as a percentage of 42764

 

Capture.PNG

 

Thanks all

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

Hi @NewbieJono 

 

Thanks for the reply from @bhanu_gautam  and @AilleryO .

 

@NewbieJono , the following steps are for your reference: 

 

Sample:

vxuxinyimsft_0-1716182198268.png

 

Create a measure as follows

 

Measure = 
VAR _sum = CALCULATE(SUM('Table'[Value]), ALL('Table'))
RETURN
IF(
    ISFILTERED('Table'[Type]),
    FORMAT(SUM('Table'[Value]) / _sum, "0.00%"),
    SUM('Table'[Value])
)

 

 

Output:

vxuxinyimsft_2-1716182713898.png

 

Best Regards,
Yulia Xu

 

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

4 REPLIES 4
v-xuxinyi-msft
Community Support
Community Support

Hi @NewbieJono 

 

Thanks for the reply from @bhanu_gautam  and @AilleryO .

 

@NewbieJono , the following steps are for your reference: 

 

Sample:

vxuxinyimsft_0-1716182198268.png

 

Create a measure as follows

 

Measure = 
VAR _sum = CALCULATE(SUM('Table'[Value]), ALL('Table'))
RETURN
IF(
    ISFILTERED('Table'[Type]),
    FORMAT(SUM('Table'[Value]) / _sum, "0.00%"),
    SUM('Table'[Value])
)

 

 

Output:

vxuxinyimsft_2-1716182713898.png

 

Best Regards,
Yulia Xu

 

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

AilleryO
Memorable Member
Memorable Member

Hi,

 

It will look like something :

% in a day =
VAR TotalofDay = CALCULATE( [Total Qty] , ALL( 'Data Product'[Category] ) )
RETURN
DIVIDE( [Total Qty] , TotalofDay )
 
With [Total Qty] being your measure (that gives 42076 and 58) and 'Data Product'[Category] being your "slicing" value (the one that shows 0-1 day and 1-2 days).
In bold is what you need to replace with your own measures/columns.
If there are more hierachical levels on your visuals, let us know because it might change the solution to adopt.
Hope it helps, let us know
bhanu_gautam
Super User
Super User

@NewbieJono , You can create a measure to calculate the percentage of each drill down category relative to number of days and pull that measure in visualization




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






sorry what would that look like?

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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