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
Gangasaniravi
Helper I
Helper I

Measure total issue in KPI showing as 0

Hello,

 

i am facing a issue with measure total in KPI i am getting 0 instead of -2, Please find below data.

Month-YearFTENet Movement (FTE)
Jan-2176.25 
Feb-2176.250
Mar-2175.75-0.5
Apr-2175.750
May-21760.25
Jun-2175.75-0.25
Jul-2174.75-1
Aug-2174.750
Sep-2174.750
Oct-2174.25-0.5
Nov-2174.250
Dec-2174.250
 Total-2

 

Below is the calculation for  Net Movement below

 

Headcount_Previous= CALCULATE ( sum(headcount) ,
DATEADD ([Date], -1, MONTH))
 
Net Movement = IF ( sum(headcount)
  && [Headcount_Previous],
sum(headcount) -[Headcount_Previous]
Data matching in Table but in KPI i am getting 0, Please hepl me on this.
Regards,
Ravi
1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Gangasaniravi ,

This seems to be caused by an incorrect measure total. 

You can also create a measure based on [Net Movement].

result=
var _b = SUMMARIZE('table','table'[date],"aaa",'table'[Net Movement])
return
IF(HASONEVALUE('table'[date]),[Net Movement],SUMX(_b,[aaa]))

 Or you can refer to my pbix file.

vrongtiepmsft_0-1713232392587.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @Gangasaniravi ,

This seems to be caused by an incorrect measure total. 

You can also create a measure based on [Net Movement].

result=
var _b = SUMMARIZE('table','table'[date],"aaa",'table'[Net Movement])
return
IF(HASONEVALUE('table'[date]),[Net Movement],SUMX(_b,[aaa]))

 Or you can refer to my pbix file.

vrongtiepmsft_0-1713232392587.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

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.