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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mollig3
Frequent Visitor

Insert Percentage column based on Month Number

Hello, I have a table that looks like the one attached. I want to add an additional column that will spit out a number for the total time divided by the total for that month. For example in the first row, I would want the new column to be 7089/65075 (sum of all total times for month number 1). Thank you!2019-02-18_12-26-09.png

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @mollig3 

 

Is what you show a table or a table visual? Do you want a calculated column or a measure?

Are the fields Total_time_c and Job Type measures? Are they summarizations of the fields or just the plain values? You'd need to give more details.

 

If it is what I think it is, you can create a measure like:

 

 

Measure =
DIVIDE (
    SUM ( Table1[Total_time_c] ),
    CALCULATE (
        SUM ( Table1[Total_time_c] ),
        ALLEXCEPT ( Table, Table1[MonthNrR.] )
    )
)

 

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @mollig3 

 

Is what you show a table or a table visual? Do you want a calculated column or a measure?

Are the fields Total_time_c and Job Type measures? Are they summarizations of the fields or just the plain values? You'd need to give more details.

 

If it is what I think it is, you can create a measure like:

 

 

Measure =
DIVIDE (
    SUM ( Table1[Total_time_c] ),
    CALCULATE (
        SUM ( Table1[Total_time_c] ),
        ALLEXCEPT ( Table, Table1[MonthNrR.] )
    )
)

 

 

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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