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
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])

Can you please provde full dax query please:

Capture.JPG

Capture.JPG

Capture.JPG

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.