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

Add New Column to show Measurement Difference

I've seen several similar posts but these have not helped me. Thus if you have a moment would you please take a look?

 

1. What I want to do: Add a new column to a Matrix that shows the difference between two other columns

 

2. My Schema (in French but I've added English to help)

 

Schema Overview.png

 

3. What I want it to look like:

 

Here's the current Matrix which has the "Question" as the Row, The "Campaign" as the columns, and the Measurement (see below for details)

 

Quality by Campaign and Question.png

 

4. The Measurement (this calculates the Quality):

 

R_CONFORME_SANS_NA =
DIVIDE
( CALCULATE(sum(F_QUALITE_REPONSE[R_CONFORME]), F_QUALITE_REPONSE[R_CONFORME_NA] <>1 ) ,
CALCULATE(COUNT(F_QUALITE_REPONSE[QUESTION_ID]),
F_QUALITE_REPONSE[R_CONFORME_NA] <>1 ))

 

5. What I want it to look like

 

This is an example of the new 3rd column that shows the "Delta" or "Difference" between the two columns

 

3rd Column (Delta).png

 

Issues:

 

I've tried creating a new measurement and referencing that but the SUM function I use expects to see a column in a table (and not a measurement).

 

Thank you kindly for your help on my first post to the Forum. I tried to make this as clear as possible I hope!

 

Grixelle

 

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a measure as below:(calculated column can only be available when you convert the other 2 measures into calculated columns)

 

Measure 2 = 'F_QUALITE_REPONSE'[Measure]-'F_QUALITE_REPONSE'[R_CONFORME_SANS_NA]

And you will see:

v-kelly-msft_0-1609322160359.png

For the related .pbix file,pls see attached.

 

If it doesnt help,could you pls provide detailed data?Thus I could better support you.

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a measure as below:(calculated column can only be available when you convert the other 2 measures into calculated columns)

 

Measure 2 = 'F_QUALITE_REPONSE'[Measure]-'F_QUALITE_REPONSE'[R_CONFORME_SANS_NA]

And you will see:

v-kelly-msft_0-1609322160359.png

For the related .pbix file,pls see attached.

 

If it doesnt help,could you pls provide detailed data?Thus I could better support you.

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

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.