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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Incorrect Total in table and KPI Card

Hi Everybody,

 

I have a problem with showing the correct number reported by my report according to one column.

 

Damiax_0-1702563317270.png

Sorry for hiding data label, but we are working in a production environment.

 

As you can see, the sum of the last column, given by [first measure] - ([avg(percentage)]*[Third measure]) should be -35, but it reports - 65 as the consequence of 355 - (743*0,565).

 

Is there any method to reach -35 instead of -65?

 

Thanks,

D

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.
[Value1] and [Value2] are measures.

Measure1 = [Value1]-AVERAGEX('Table B',[Percent])*[Value2]
Measure2 = 
Var _table=SUMMARIZE('Table A','Table A'[Type],'Table A'[Month],"Result",[Measure1])
Var _total=SUMX(_table,[Result])
Return
IF(HASONEVALUE('Table A'[Month]),[Measure1],_total)

vzhangti_0-1702982357625.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.
[Value1] and [Value2] are measures.

Measure1 = [Value1]-AVERAGEX('Table B',[Percent])*[Value2]
Measure2 = 
Var _table=SUMMARIZE('Table A','Table A'[Type],'Table A'[Month],"Result",[Measure1])
Var _total=SUMX(_table,[Result])
Return
IF(HASONEVALUE('Table A'[Month]),[Measure1],_total)

vzhangti_0-1702982357625.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

dadb25
Helper I
Helper I

Hi Damiax,

dadb25_0-1702564397460.png

You can use this measure :

Measure =
SUM ( Feuil1[Val1] )
    - ( SUMX ( 'Feuil1', 'Feuil1'[Percentage] * 'Feuil1'[Val2] ) )
 
Hope it helps.
Did I answer your question? Mark my post as a solution!
 
Regards

 

Anonymous
Not applicable

Hi @dadb25 , I've tried your solution but I got a tottaly wrong number.

My Feuil1[Val1] is a distinct count measure coming from a column of table A, percentage is a column of Table B and Feuil1[Val2] is another distinct count measure coming from a column of table C.

I don't know whether this could be a problem

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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