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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
VincenzoChean
Helper I
Helper I

Total Wrong

Hi, 

 

i'm not sure why the Budget Total is showing the Total for the full year including the months that have not started when my measure is supposed to ignore the months that have no Actual numbers. 

 

VincenzoChean_0-1658974396935.png

 

the measures are 

 

Total Sales =
CALCULATE(
    sum('IWL Append'[Total Revenue]))

 

Sales Budget =

IF(ISBLANK([sum total revenue]),BLANK(),sumx(SalesBudget,SalesBudget[Value]))

 

Var Budget =
VAR __BASELINE_VALUE = SalesBudget[Sales Budget]
VAR __VALUE_TO_COMPARE = [Total Sales]
RETURN
    IF(
        NOT ISBLANK(__VALUE_TO_COMPARE),
        DIVIDE(__VALUE_TO_COMPARE - __BASELINE_VALUE, __BASELINE_VALUE)
    )
 
 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@VincenzoChean , This is because of the row context , push column from visual

 

Sales Budget =

Sumx(Values(Date[Month]) , calculate( IF(ISBLANK([sum total revenue]),BLANK(),sum(SalesBudget[Value])) ) )

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@VincenzoChean , This is because of the row context , push column from visual

 

Sales Budget =

Sumx(Values(Date[Month]) , calculate( IF(ISBLANK([sum total revenue]),BLANK(),sum(SalesBudget[Value])) ) )

thanks mate. it worked now. cheers 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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