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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Column vs Measure

I am very new to Power BI and Still not understanding the difference between calculating a column vs calculating a measure.

Below I am working on a DAX that is giving me different values for the same formula.

 

Column 3 = Divide ( Sum ( column ), Sum(Loads)) = 2.3, 0.24, etx

Measure  = Column divided by Loads = Divide ( Sum ( column ), Sum(Loads))  = 3%,  5.9%. which is correct.

 

The reason  I need to use the column is so I can take the average of that column and display it on a grap. I am not able to take an averge of the measure.  My question is how could I get the correct results with the Column formula.

 

Column   Loads            Column 3 (DAX)           Measure ( Loads Divided by Column)(DAX)

0                      317                       2.32             

1                        33                       0.24                                  3%

0                        79                        0.57

2                         34                       0.24                                 5.9%

 

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

Hi @Anonymous ,

 

You'd better create measures.

Calculated Columns vs Measures 

Measure 2 = 
DIVIDE(
    MAX('Table (3)'[Column]),
    MAX('Table (3)'[Loads])
)

Average_measure = 
AVERAGEX(
    ALL('Table (3)'),
    [Measure 2]
) 

If you want to create columns, you can do like this:

Column 2 = 
DIVIDE(
    'Table (3)'[Column],
    'Table (3)'[Loads]
)

Average_column = AVERAGE('Table (3)'[Column 2])

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

You'd better create measures.

Calculated Columns vs Measures 

Measure 2 = 
DIVIDE(
    MAX('Table (3)'[Column]),
    MAX('Table (3)'[Loads])
)

Average_measure = 
AVERAGEX(
    ALL('Table (3)'),
    [Measure 2]
) 

If you want to create columns, you can do like this:

Column 2 = 
DIVIDE(
    'Table (3)'[Column],
    'Table (3)'[Loads]
)

Average_column = AVERAGE('Table (3)'[Column 2])

 

Best regards,
Lionel Chen

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

amitchandak
Super User
Super User

@Anonymous 

Refer: https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

In column you should try lik

Column 3 = Divide ( [ column ], [Loads]) = 2.3, 0.24, etx

Then use Avg Measure = Average(Table[Column 3])

This one is correct

Measure = Column divided by Loads = Divide ( Sum ( column ), Sum(Loads))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.