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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Brad_Roberts
Frequent Visitor

Issue with Measure Total with an IF Statement

After reading many posts on this i'm still having issues with the total for Move-Out SF 2.  My row dax works fine but the total is not working.  Change SF is a measure of (Sum of All Area - Start SF) and I want to split that between two new measures (Move-In and Move-Out).

 

Brad_Roberts_0-1670880138916.png

 

Any help is appreciated.

 

Thanks.

6 REPLIES 6
Brad_Roberts
Frequent Visitor

@tamerj1 

 

That worked for one of the Tcodes but not the others:

 

Brad_Roberts_0-1670942474121.png

 

 

@Brad_Roberts 

What is the name of this column? Is ot from the same table?

AD603640-EF73-416B-B6FC-AA4BD5A2FD88.jpeg

 

Property Code, same table for both snips.

@Brad_Roberts 

Please try

Move-Out SF2 =
SUMX (
SUMMARIZE (
'Tenency Data',
'Tenency Data'[Property Code],
'Tenency Data'[Tcode]
),
VAR ChangeSF = [Change SF] RETURN IF ( ChangeSF < 0, ChangeSF )
)

Same result as before:

Brad_Roberts_0-1670963791750.png

 

tamerj1
Super User
Super User

Hi @Brad_Roberts 

Please use

Move-Out SF2 =
SUMX (
VALUES ( 'Tenency Data'[Tcode] ),
VAR ChangeSF = [Change SF] RETURN IF ( ChangeSF < 0, ChangeSF )
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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