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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Table Help Pls

Hi all, another little question please. There is the following data below. Need to add all the "ETC" by Month and Name and then divide by "Avail". 

 

So for example, for Sam in Jan, the result should be (10+30+20)/160. Thanks very much!

 

 dax1.PNG

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Here is one way to get your desired result with a measure (if your visual includes person and month columns) or a DAX calculated column.

 

Result =
VAR sumest =
CALCULATE (
SUM ( Avail[Est] ),
ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
)
VAR sumavail =
CALCULATE (
SUM ( Avail[Avail] ),
ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
)
RETURN
sumest / sumavail

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 




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

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Here is one way to get your desired result with a measure (if your visual includes person and month columns) or a DAX calculated column.

 

Result =
VAR sumest =
CALCULATE (
SUM ( Avail[Est] ),
ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
)
VAR sumavail =
CALCULATE (
SUM ( Avail[Avail] ),
ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
)
RETURN
sumest / sumavail

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 




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

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks! That worked!

 

 

AlB
Community Champion
Community Champion

Hi @Anonymous 

Do you want this in DAX or the query editor. You seem to be showing the query editor interface but this would be easier/more natural in DAX. It can also be done in M though.  Can you paste the data here in text-tabular format (instead of screen capture) so that it can be copied and used in a test?

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs

Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.