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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.