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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Joseph_Hchaime
Helper III
Helper III

Multiplying Percentage with Total

Hi Everyone,

 

I'm semi-new to PBI with no formal training or structured course-taking. I'm sort of learning on the job. 

 

I need help with the following scenario. I have sales data with hours and dollar amount values. I was able to calculate the % of hours vs total sales but I'm not able to calculate the $$ value of those hours versus total sales. I tried multiplying the % dax measure with the measure of total sales but it didn't work, it skipped a couple of rows and only gave me the value of 1 row. 

 

Sample Data: the last column is what i'm trying to achieve. multiply the allocation of horus for each row by the total value 

 

Project NameUserHoursValueAllocation of HoursValue Allocation
MercuryJohn Doe3030%                 3,000.00
 James Smith3030%                 3,000.00
 Jane Doe4   10,000.0040%                 4,000.00
 Total10   10,000.00100%               10,000.00
1 REPLY 1
DataInsights
Super User
Super User

@Joseph_Hchaime,

 

Try these measures:

 

Total Hours = SUM ( Table1[Hours] )
Total Value = SUM ( Table1[Value] )
Allocation of Hours = 
VAR vNumerator = [Total Hours]
VAR vDenominator =
    CALCULATE (
        [Total Hours],
        ALLSELECTED ( Table1 ),
        VALUES ( Table1[Project Name] )
    )
VAR vResult =
    DIVIDE ( vNumerator, vDenominator )
RETURN
    vResult
Value Allocation = 
VAR vValue =
    CALCULATE (
        [Total Value],
        ALLSELECTED ( Table1 ),
        VALUES ( Table1[Project Name] )
    )
VAR vFactor = [Allocation of Hours]
VAR vResult = vValue * vFactor
RETURN
    vResult

 

DataInsights_1-1675178291668.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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