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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Dividing a Measure by existing column

Hello!

 

I'm struggling in creating a new measure as in the following calculation:

SUM([Gap to Monthly Target] / DIM_BO_WDAYS[WORKING_DAYS]))

 

I tried different queries but It doesnt let me to sum the measure (Gap to Monthly Target). 

Anyone have some idea to sove this? 

KatyaK_0-1628595636658.png

 

KatyaK_1-1628595711899.png

 

Thanks!

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey  @Anonymous ,

 

a measure always returns a single value like a number. A column you have to do an aggregation like a sum.

So if I understood right [Gap to Monthly Target] is a measure, so it won't need an aggregation as it's a single value. And DIM_BO_WDAYS[WORKING_DAYS] is a column, so it needs an aggregation like sum.

If that's correct the following measure should work:

myMeasure = [Gap to Monthly Target] / SUM(DIM_BO_WDAYS[WORKING_DAYS])

 

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

If you want every rows return the sum of measure,try the below:

Measure = CALCULATE(SUMX(DIM_BO_WDAYS,[Gap to Monthly Target]),ALL(DIM_BO_WDAYS))/DIM_BO_WDAYS[Gap to Monthly Target]
Measure 2 = CALCULATE(SUMX(DIM_BO_WDAYS,[Gap to Monthly Target]),ALL(DIM_BO_WDAYS))

 

And then you will get the below:

vluwangmsft_0-1628757956436.png

 

Wish it is helpful for you!

If the problem is still not solved, can you pls provide your relevant data and the output you want?

 

 

Best Regards

Lucien

selimovd
Super User
Super User

Hey  @Anonymous ,

 

a measure always returns a single value like a number. A column you have to do an aggregation like a sum.

So if I understood right [Gap to Monthly Target] is a measure, so it won't need an aggregation as it's a single value. And DIM_BO_WDAYS[WORKING_DAYS] is a column, so it needs an aggregation like sum.

If that's correct the following measure should work:

myMeasure = [Gap to Monthly Target] / SUM(DIM_BO_WDAYS[WORKING_DAYS])

 

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors