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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors