Forum Discussion

Nanakwame's avatar
Nanakwame
Helper II
4 years ago

Dax Function to Calculate Variance

Hi Experts,

 

I have a table in which a created a measure to calculate Margin for each department. 

When i pull in this measure into a matrix table with Month in Rows and Years in column and Margin in values i get the table attached. I will like to add a column that compares 2020 and 2021 margin. Any idea how i can achieve this?

 

 

 

 

5 Replies

  • v-xiaotang's avatar
    v-xiaotang
    Community Support

    Hi Nanakwame 

    Have you solved this question with Pragati11's help? If you have solved the question, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

    If you need more help, please provide:

    (1) a sample file, you can replace raw data with bogus data to protect your privacy.

    (2) or provide some sample data that fully covers your issue/question

    (3) give your expected result based on the sample you provide

    Kindly note: Please ensure the data in sample is concise and representative.

    Thanks.

     

     

    Best Regards,

    Community Support Team _Tang

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