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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Calculate subtotal with DAX

Hi everyone,

 

I'm trying to perform a formula to calculate a subtotal of the "Nb Answered" but cannot achieve it...

What I want exactly is the % of "Nb Answered" for each agent, obviously by date. So I have to calculate the sum of "Nb Answered", by date. 

Can someone help ?

 

Thank you very much in advance

 

BenNeed help.png

1 ACCEPTED SOLUTION

If you want at the date level then the date should have driven denominator?

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

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

You can do in Matrix Visualization

Refer for formula

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

https://www.tringuyenminh92.com/index.php/2017/08/07/percent-of-subtotalgroups-in-power-bi/

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
Anonymous
Not applicable

Hi Amitchandak, Is there a way to do it in a table as I have other columns and the matrix does not correspond the requirements I have. I tried this formula without success : % of calls = CALCULATE ( SUM ( 'User Productivity'[Nb Answered] ) ) / CALCULATE ( SUM ( 'User Productivity'[Nb Answered] ); ALLEXCEPT ( 'User Productivity'; 'User Productivity'[Agent] ) ) I'm I doing Something wrong, or is it just because of the vizualisation ? Thank you !

I tried sameon table . For Sub total at brand level, I sorted table on brand to check results 

% Brand = 
CALCULATE ( SUM ( Sales[Sales] ) )
    / CALCULATE (
        SUM ( Sales[Sales] ),
        ALLEXCEPT ( 'Item','Item'[Brand])
    )*100

Screenshot 2019-09-12 23.27.30.png

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

If you want at the date level then the date should have driven denominator?

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
Anonymous
Not applicable

Ok I got it !! Thank you very much !!!!!

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.

Top Solution Authors