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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
askoflor
New Member

DAX filter

hello, I wrote a DAX code to retrieve only the positive lines of my subtraction.
but there is a problem I am told to include a parameter in the ALLSELECTED(),

 

Positive Result =
CALCULATE (
[Sum Measure 1] - [Sum Measure 2],
FILTER (
ALLSELECTED ( ),
[Sum Measure 1] - [Sum Measure 2] > 0
)
)

THANKS

 

1 ACCEPTED SOLUTION
BrianShaw
Microsoft Employee
Microsoft Employee

Yes you need to put a table name in between the ( ) so that it know what table you want all rows selected.

View solution in original post

1 REPLY 1
BrianShaw
Microsoft Employee
Microsoft Employee

Yes you need to put a table name in between the ( ) so that it know what table you want all rows selected.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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