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

Percentaje by month

Hi, I need to calculate the percentaje by month of the Hours in this table, at the moment i obtain the % by all table, how to do that?, Thanks by the help

 

 

 

Capture.JPG

1 ACCEPTED SOLUTION

@Anonymous 

If you are summarizing, use this method,

% By Month = 

DIVIDE(
    SUM(Table2[Hours]),
    CALCULATE( SUM(Table2[Hours]) , ALLEXCEPT(Table2,Table2[Month]))
)



Fowmy_0-1604166992472.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

11 REPLIES 11
sanalytics
Solution Supplier
Solution Supplier

Try this measure

 

Measure = DIVIDE(SUM('Table'[Hurs]),CALCULATE(SUM('Table'[Hurs]),ALL('Table'[Cilent],'Table'[Mnth])))
 
Regards,
sanalytcs
if it is your solution pease accept it as solution and please like
Anonymous
Not applicable

Is not working, i have one table 

Anonymous
Not applicable

Thanks by the help

Can you please provide some dummy data so that i can try

Anonymous
Not applicable

How to send you the pbix file?

Anonymous
Not applicable

Example Data

 

MonthClientHours
1C13
1C24
1C36
1C48
1C19
1C110
1C22
2C33
2C45
2C47
2C28
3C412
3C234

@Anonymous 

Measure to calculate the % of Total Hours by Month:

% Hours By Month = 

DIVIDE(
    SELECTEDVALUE(Table1[Hours]),
    CALCULATE( SUM(Table1[Hours]) , ALLEXCEPT(Table1,Table1[Month]))
)

Fowmy_0-1604158607683.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks a lot now iw working!, but when i tried summarize the hours the measure show errors. Thanks al ot by the help

 

rcardenas1966_0-1604162510978.png

 

@Anonymous 

If you are summarizing, use this method,

% By Month = 

DIVIDE(
    SUM(Table2[Hours]),
    CALCULATE( SUM(Table2[Hours]) , ALLEXCEPT(Table2,Table2[Month]))
)



Fowmy_0-1604166992472.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks a lot by the help

Anonymous
Not applicable

Thanks by the help

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.