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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jodes007
Frequent Visitor

Create Measure to calculate Net impact on filtered value

Hello All 

 

I have not been able to find a solution for this. I have a large dataset, the very top level is ProgramID. I want to be able to filter on the Total NET impact of the ProgramID regardless of how many lines there are. The final intent would be to filter out any NET impact <0 on several other metrics.  

 

TIA

 

Sample of data below.  

PJ-2 is NET 296 so it would stay. 

PJ-3 is NET -9 so it would filter out. 

ProgramIDApplication Total Impact 
PJ-1AAAA                  168
PJ-1BBBB               1,950
PJ-2AAAA                  804
PJ-2BBBB                     (4)
PJ-2CCCC                (504)
PJ-3AAAA                     (4)
PJ-3BBBB                     (2)
PJ-3CCCC                     (2)
PJ-4AAAA                    21
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jodes007 ,

 

Sorry, not very clear. 

If you want to filter out rows NET impact<0 in the visual. In the Filters, set up as follows.

vstephenmsft_0-1675329189455.png

If you want to filter out NET impact<0 in the measure.

COUNT TOTAL = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[Total Impact]>=0))
COUNT GROUP BY ProgramID = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[ProgramID]=MAX('Table'[ProgramID])&&[Total Impact]>=0))

vstephenmsft_1-1675329387853.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Jodes007 ,

 

Sorry, not very clear. 

If you want to filter out rows NET impact<0 in the visual. In the Filters, set up as follows.

vstephenmsft_0-1675329189455.png

If you want to filter out NET impact<0 in the measure.

COUNT TOTAL = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[Total Impact]>=0))
COUNT GROUP BY ProgramID = CALCULATE(COUNT('Table'[ProgramID]),FILTER(ALLSELECTED('Table'),[ProgramID]=MAX('Table'[ProgramID])&&[Total Impact]>=0))

vstephenmsft_1-1675329387853.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Sorry, it should have read NET impact >0.  Filtering does not work as the Total impact is at the Application level where there are many lines. BUT the count group looks like it makes sense. I will try it today and see.

Anonymous
Not applicable

Hi @Jodes007 ,

 

Is your problem solved?

If so, please accept the reply as solution. More people will benefit.

If not, please provide me with more details about it.

 

Best Regards,

Stephen Tao

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors