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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculated column vs Measure

I am creating a value by dividing two columns ACT QTY Total and ACT VAL Total with each other to create Plan A$/t. However, when I divide them, first value should be 2858535/2494046 = 1.14614. I am getting 0.87 from the measure. But using ProfitBase matrix, when I divide the first two columns, with each other, the value comes to 1.14614. What could be the reason for the difference?

FYI measure def: 

 
Plan A$/t =
DIVIDE(
    calculate(SUM('Sales Detail2'[ACT QTY Total]), ALLSELECTED('Reporting Level Key'[Reporting Level Key (groups)])),
    calculate(SUM('Sales Detail2'[ACT VAL Total]), ALLSELECTED('Reporting Level Key'[Reporting Level Key (groups)]))
)

 

adambal_0-1661407986084.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

ribisht17
Super User
Super User

@Anonymous 

 

Please post some sample data

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

 

Regards,

Ritesh

Anonymous
Not applicable

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.