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
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.