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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jcoolen09
Regular Visitor

Every row showing same value for custom column

I want to show a percentage for each row. The formula is their Billable Hours column DIVIDED by their Total Hours column. Why is it just showing the same value for every row? 

 

jcoolen09_0-1708624356753.png

jcoolen09_1-1708624382489.png

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jcoolen09 ,

I created some data:

vyangliumsft_0-1708652429105.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _sumbillable=
SUMX('MARSData',[Billable Hours])
var _sumtotal=
SUMX('MARSData',[Total Hours])
return
DIVIDE(
    _sumbillable,_sumtotal)

2. Result:

vyangliumsft_1-1708652429106.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @jcoolen09 ,

I created some data:

vyangliumsft_0-1708652429105.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _sumbillable=
SUMX('MARSData',[Billable Hours])
var _sumtotal=
SUMX('MARSData',[Total Hours])
return
DIVIDE(
    _sumbillable,_sumtotal)

2. Result:

vyangliumsft_1-1708652429106.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Fowmy
Super User
Super User

@jcoolen09 

Create a measure with our code. 


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

our code?

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.