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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

difference between measure with filters applied

Hi,

 

I am trying to calculate the difference for categoryies in the table below. My idea was that once i added up the number propensity added measure and the number propsentiy moved measure i would get the difference. Yet what i get is 0 when i add these 2 measures together. For example I want to get a column that has my excellent for my new table to be 96-54=42, very good being 450-322 = 128 etc. The number of rows here are just a countrow measure which i do not see a way to help me get the difference.

 

Number Propensity Added = CALCULATE(COUNT(DONOR_TABLE[Propensity Category]),FILTER(DONOR_TABLE,DONOR_TABLE[Propensity Category] <> DONOR_TABLE[Propensity Category Old]))+0
 
Number propensity Removed =
-CALCULATE(COUNT(DONOR_TABLE[Propensity Category Old]),FILTER(DONOR_TABLE,DONOR_TABLE[Propensity Category]<>DONOR_TABLE[Propensity Category Old]))+0
 
dq1770_1-1654206286086.png

 

Any help is much appreciated!

 

 
 
2 REPLIES 2
Whitewater100
Solution Sage
Solution Sage

Hi:

Do you have a data model or just a table? Depending on that this maneuveur can be three measures:

New Total = SUM(Table[Donor Added])

Old Total = SUM(TableName[Donor Removed])

Change = [New Total] - [Old Total]) 

 

If you want to share sample data in pbix or excel, please do. Thanks..

Anonymous
Not applicable

Hi:

Both the donor added and donor removed are measures and they can not be manipulated by the sum function. The way that i created these 2 measures are in the description. 

 

Sadly i can not share data, as it is confidential. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.