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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bangerz253
Frequent Visitor

Create new column for measure?

power bi.PNG

Hello, I'm looking to create a new column for a conversion rate. Ex.  In Cali of April, there is 136 TRUE and 364 Total, so I want a new column that does 136/364 and so on for FALSE, SERVICE. Also, Is there a reason why PowerBI is adding incorrectly? In WA on the blank row, if u add 76+22+3=101 , not 101? If anyone is able to help me, I'd be greatly appreciative!!

 

 

1 ACCEPTED SOLUTION

I see: 

1) right click anywhere in the table dropdown on the right.

2) click quick measure (also in the ribbon on home->top right)

3) use the dropdown in the quick measure pop up to select your operation

 

So you need to create a total by category measure first

(this will be the sum of all your columns) by state

 

Then you can create another quick measure that divides the "total measure" we just created by the columns Tru, Fals, Etc. using the division operator. 

 

You can also create a new column but this can take up a lot of space if you have a lot of records. 

 

You could also use DAX and use the "measure" instead of "quick measure" 

Measure Total = SUMX('Table','table'[False]+'Table'[True]...etc)

View solution in original post

4 REPLIES 4
jar2019
Helper I
Helper I

I am thinking you should just create a quick measure and use the division operator. Then use True as numerator and Total as denominator. This will keep your refresh speeds fast and efficient only pulling the calculations that you need to query. 


@bangerz253 wrote:

power bi.PNG

Hello, I'm looking to create a new column for a conversion rate. Ex.  In Cali of April, there is 136 TRUE and 364 Total, so I want a new column that does 136/364 and so on for FALSE, SERVICE. Also, Is there a reason why PowerBI is adding incorrectly? In WA on the blank row, if u add 76+22+3=101 , not 101? If anyone is able to help me, I'd be greatly appreciative!!

 

 


 

@jar2019  the total is automatically calculated by Power Bi based on my groupings and count. I'm not sure how I would do the quick measure?

I see: 

1) right click anywhere in the table dropdown on the right.

2) click quick measure (also in the ribbon on home->top right)

3) use the dropdown in the quick measure pop up to select your operation

 

So you need to create a total by category measure first

(this will be the sum of all your columns) by state

 

Then you can create another quick measure that divides the "total measure" we just created by the columns Tru, Fals, Etc. using the division operator. 

 

You can also create a new column but this can take up a lot of space if you have a lot of records. 

 

You could also use DAX and use the "measure" instead of "quick measure" 

Measure Total = SUMX('Table','table'[False]+'Table'[True]...etc)
jar2019
Helper I
Helper I

Are you rounding any of the columns? That might be why it is not adding correctly. 


@bangerz253 wrote:

power bi.PNG

Hello, I'm looking to create a new column for a conversion rate. Ex.  In Cali of April, there is 136 TRUE and 364 Total, so I want a new column that does 136/364 and so on for FALSE, SERVICE. Also, Is there a reason why PowerBI is adding incorrectly? In WA on the blank row, if u add 76+22+3=101 , not 101? If anyone is able to help me, I'd be greatly appreciative!!

 

 


 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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