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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ninashand
Frequent Visitor

Measure not providing Total

Hi, i'm trying to distinguish new vs retained sales.

My first two measures are working as expected. 

 

However for my final two measures receiving i'm received no total amount at all for New Sales

then receiving an incorrect total amount for Retained Sales. Help! I'm not understanding why.  

 

Past Years Total = CALCULATE(sum('Opportunity Product'[TotalPrice]),Events[Past Event] <> "N")Bi Example.PNG
Current Event Total = CALCULATE(sum('Opportunity Product'[TotalPrice]),Events[Past Event] = "N")
 
New Sales = if([Past Years Total] = 0, [Current Event Total])
Retained Sales = [Current Event Total] - [New Sales]
 
1 ACCEPTED SOLUTION
ERD
Super User
Super User

Hi @ninashand ,

The answer to this topic (incorrect totals for measures) can be found in this forum.

For example, DAX Formula Total is coming 0 or Correct values, but wrong total.

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

View solution in original post

3 REPLIES 3
ERD
Super User
Super User

Hi @ninashand ,

The answer to this topic (incorrect totals for measures) can be found in this forum.

For example, DAX Formula Total is coming 0 or Correct values, but wrong total.

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

ninashand
Frequent Visitor

Thank you, the first article got me there, I had to turn my measures into columns for some reason also, got there in the end! Thanks, spent a day going in circles on this. You're a legend

amitchandak
Super User
Super User

@ninashand , While I need data and logic to solve this . My two blogs can help you deal with new vs retain 

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.