Hello I would like to use a matrix in the visualization part which displays a field representing the difference between two columns displayed by the same matrix how can I do to achieve this manipulation ?
Your suggestions !!
thank you in advance.
You’d better create a measure like the following formula, and add the measure as value level in matrix. Then check if it works fine.
I am not reproduce your scenario based on your description, if this is not what you want, please share your resource data for further analysis.
Hi Angelia, thanks for your answer.
Here is my dataset I would like to make a grouping of the Mt HT according to the field Field and to make the difference between the Mt Ht of Currentyear and and the Mt Ht of PreviousYear for each customer in order to see the evolution of the MtHt according to the two successive years.
It can be noted that a single customer can repeat 2 or 3 times in the same year
I am very new in the world of power bi, what you propose me to do.
Thank you very much.
I try to reproduce your scenario and get the desired result.
First, please create measures using the following formulas.
Total1 = SUM(Table2[MtHT]) Difference = CALCULATE(Table2[Total1], Table2[RubriQue2]="Currentyear")-CALCULATE(Table2[Total1],Table2[RubriQue2]="PreviousYear")
Then create a matrix, select the Code Com row level, Rubrique2 as column level, the measure as value level. You will get the result like second screenshot below.
If you have any other issue, please let me know.
Hi @v-huizhn-msftThanks for your answer
I followed your instructions but the results were abnormal here is a screenshot of what was produced.Sorry I hid the column of Nom Comercial for privacy reasons.
in my case Réalisé + Liv N - 1 is previousyear and Réalisé + Liv N is CurrentYear
It's weird, the value in RubriQue2 is year level? If it isn't, please add a year column, then select year column as column level in Matrix visual.
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Learn about the exciting things that happened in July.
Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.
We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.