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! Request now

Reply
mdaamirkhan
Post Prodigy
Post Prodigy

Total value is not working correctly in the Card

Hi All,

 

When I search any ID from the filter its giving incorrect valeu in the card.

I need help on belwo dax to show correct Total value in the card.

Dax: 

Estimated revenue Current year =
var thisYear = year(now())
var val =
CALCULATE([Number of serice month]
,
Filter (Input_Contract_Report, Input_Contract_Report[Active] = "Yes"),
Filter (Input_Contract_Report, Input_Contract_Report[End Date].[Year] ),
ALLEXCEPT(Invoice_Report,Invoice_Report[Contract Code])
)
return
--thisYear
val * [Averge Revenue]

 

Showing in incorrect value on the card when I add up 3 values:

Capture.JPG

 

If I add  3 value from table the  Output will be = 96,715


1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@mdaamirkhan 

Try:

Correct totals = SUMX(Table, [Estimated revenue Current year])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

@mdaamirkhan 

Try:

Correct totals = SUMX(Table, [Estimated revenue Current year])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






mdaamirkhan
Post Prodigy
Post Prodigy

Any update?

amitchandak
Super User
Super User

@mdaamirkhan ,

 

Change return like

sumx(Table, Table[debtor number], Table[Customer Name], Table[contact code], "_1",val * [Averge Revenue]), [_1])

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

Can you please provde full dax query please:

Capture.JPG

Capture.JPG

Capture.JPG

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