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

View all the Fabric Data Days sessions on demand. View schedule

Reply
yuktadiya
Helper III
Helper III

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors