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
MandyL
Helper I
Helper I

How to include the filter out data on the DAX Calculate function

Hi Team,

There are three pages on the PBI report, each page showing the project status.
If we filtered the Project_Status=”Win” on the first page, may I know how to change the calculate column (Win%)? As the Sales_Closed and Sales_Pending value are showing blank on the first page. Is there any way to show the filter out data? If we don’t consider the “Edit Interactions” function. Thanks!



Calculate column:

Win%=
VAR Sales_WIN= CALCULATE( ‘Project’[Sales Amount],  Filter (All (‘Project’), [Project_Status]=”Win”))
VAR Sales_Closed= CALCULATE( ‘Project’[Sales Amount],  Filter (All (‘Project’), [Project_Status]=”Closed”))
VAR Sales_Pending= CALCULATE( ‘Project’[Sales Amount],  Filter (All (‘Project’), [Project_Status]=”Pending”))

Return
Sales_WIN/(Sales_WIN+Sales_Closed+Sales_Pending)

1 REPLY 1
PurpleGate
Resolver III
Resolver III

Hi,

 

You could try change ALL to ALLSELECTED 

 

Win%=
VAR Sales_WINCALCULATE( ‘Project’[Sales Amount],  Filter (ALLSELECTED (‘Project’), [Project_Status]=”Win”))
VAR Sales_ClosedCALCULATE( ‘Project’[Sales Amount],  Filter (ALLSELECTED(‘Project’), [Project_Status]=”Closed”))
VAR Sales_PendingCALCULATE( ‘Project’[Sales Amount],  Filter (ALLSELECTED(‘Project’), [Project_Status]=”Pending”))

Return
Sales_WIN/(Sales_WIN+Sales_Closed+Sales_Pending)

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.