cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Dax Formula subtract a measure

Hi All,

 

Need help.  I am stuck.

 

Can I create a new measure using 2 other measures.  If not what is the correct method to get net members.

 

I have created two measures

MembersCountInvoicetable = DISTINCTCOUNT(SalesInvoicesandcreditnotesappend[Contact])

MembersresignationCountcredittable = DISTINCTCOUNT(CreditNotes[Contact])

 

I have used the two measure A -B = C  or 500 - 30 = 470 to get net members as per below

 

NoOfMembers = SalesInvoicesandcreditnotesappend[MembersCountInvoicetable]-SalesInvoicesandcreditnotesappend[MembersresignationCountcredittable]

 

Result should be 470 but is not. 

 

Cheers

Elizabeth

 

 

Elizabeth Tachjian
1 REPLY 1
Highlighted
Microsoft
Microsoft

Re: Dax Formula subtract a measure

Hi @ElizabethTachji,

 

We could create a new measure using 2 other measures via subtract method. But the result returned by a measure will be affected by row context. Especially, the two basis measures are calculated from two tables.

 

For more advice, please share your sample data and show us desired output.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors