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
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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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