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
yuktadiya
Helper II
Helper II

showing infinity when adding both year and version

4.JPG

hi All

 

when i adding year or version in column in matrix table the varaince and % varaince showing correct 

when i adding and drill down both year and version % varaince showing inifnity  

1.JPG2.JPG3.JPG

note : 

Variance =
var y = LEFT(SELECTEDVALUE(TBA_SBA[Year]),4) & "p"
var z = LEFT(SELECTEDVALUE(TBA_SBA[Year]),4) & " LE"
var p = CALCULATE(SUM(TBA_SBA[Amount]),TBA_SBA[Year]= y)
var le =  CALCULATE(SUM(TBA_SBA[Amount]),TBA_SBA[Year]= z)
 return
  (p - le)  
 
regards
Dilip
1 REPLY 1
amitchandak
Super User
Super User

@yuktadiya , Sum of Amount and Variance is coming same.  it mean formula is not correct

 

var p = CALCULATE(SUM(TBA_SBA[Amount]),filter(all(TBA_SBA), TBA_SBA[Year]= y && [Service_provide] = max([Service_provide]) && [Function] = Max([Function])  ) )
var le = CALCULATE(SUM(TBA_SBA[Amount]),filter(all(TBA_SBA), TTBA_SBA[Year]= z && [Service_provide] = max([Service_provide]) && [Function] = Max([Function]) ))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.