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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Josepatwentysix
Frequent Visitor

Help with new Measure

Hello there,

I'm kind of new in Power BI, and I was wondering if is it possible to create a new measure using two variables of two different query's. I took the EdX course, but I don't remember to have an exercise like this.

 For sure, if this is possible I will appreciate the advice of how to do it. Step by step likely. Hope someone sees my question and answer it.

The function that I need to do is a difference. Variable A, subtract Variable B (A-B).

Best regards.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Josepatwentysix

 

I'm not sure if I fully understood your question, but I'll try to answer the question.

 

You have to create 3 measures in PBI Desktop.

 

1. Measure:

FirstMeasure = sum(Tabelle1[A])

 

2. Measure:

SecondMeasure = sum(Tabelle1[B])

 

Difference Measure:

Difference = [FirstMeasure] - [SecondMeasure]

 

Greetings

Hp Pfister

 

 

Measure A: calculate something

Measure B: calculate something

Measure Difference: = A - B

 

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi Josepatwentysix

 

I'm not sure if I fully understood your question, but I'll try to answer the question.

 

You have to create 3 measures in PBI Desktop.

 

1. Measure:

FirstMeasure = sum(Tabelle1[A])

 

2. Measure:

SecondMeasure = sum(Tabelle1[B])

 

Difference Measure:

Difference = [FirstMeasure] - [SecondMeasure]

 

Greetings

Hp Pfister

 

 

Measure A: calculate something

Measure B: calculate something

Measure Difference: = A - B

 

 

 

 

Of course, that's what I've learned already when both varibles correspond to the same Query. I was talking more like when one variable is from one Query or folder, and the other variable is from a different Query or folder.
 But if you wanted to say Tabelle1 and Tabelle 2, I guess you right, I'm gonna try with your explanation and promote you to solution.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.