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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
pmahale
Frequent Visitor

Totals are not coming correct

Hi,

 

The total number of new customers is not correct. The total should be 32,261.

pmahale_0-1656624863201.png

How to fix this? Please advise.

 

Thanks

1 ACCEPTED SOLUTION

Hi,

These are my measures

Date of first interaction = CALCULATE(MIN('Waterfall Data'[transdate]),DATESBETWEEN('Dim Date'[Date],MINX(ALL('Dim Date'),'Dim Date'[Date]),MAX('Dim Date'[Date])))
New cust = countrows(FILTER(values('Waterfall Data'[customerid]),[Date of first interaction]>=MIN('Dim Date'[Date])))

Hope this helps.

See the third column

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
v-xiaotang
Community Support
Community Support

Hi @pmahale 

Thanks for reaching out to us.

Could you please share a sample file for us to check the issue? Thanks.

 

Best Regards,

Community Support Team _Tang

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

Hi ,

 

Please refer to the file. The totals are not coming to be correct for new customers,existing customers,prior month customers.

https://drive.google.com/file/d/1p_JA0OQs9xVjsPOaLrr49nTh1-fhVsWv/view?usp=sharing 

 

Thanks

Ashish_Mathur
Super User
Super User

Hi,

That number may be correct because a customer in March may also be a customer in May.  In such a case, a simple addition will give the wrong answer.  If you need further help, then share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

Please refer to the attached file.

 

The totals are not coming correct.

https://drive.google.com/file/d/1p_JA0OQs9xVjsPOaLrr49nTh1-fhVsWv/view?usp=sharing 

 

Thanks

Hi,

These are my measures

Date of first interaction = CALCULATE(MIN('Waterfall Data'[transdate]),DATESBETWEEN('Dim Date'[Date],MINX(ALL('Dim Date'),'Dim Date'[Date]),MAX('Dim Date'[Date])))
New cust = countrows(FILTER(values('Waterfall Data'[customerid]),[Date of first interaction]>=MIN('Dim Date'[Date])))

Hope this helps.

See the third column

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur for your help. This works.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
0leg
New Member

VahidDM
Super User
Super User

Hi @pmahale 

 

Is "new customers" a measure? It's a common issue, please check this blog:
https://www.vahiddm.com/post/why-my-measure-returns-the-wrong-total

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

 

 

Hi @VahidDM 

Please refer to the file. I am not getting the totals correct.

https://drive.google.com/file/d/1p_JA0OQs9xVjsPOaLrr49nTh1-fhVsWv/view?usp=sharing 

Anonymous
Not applicable

Hello @pmahale, please visit the link below:

https://youtu.be/ufHOOLdi_jk 

I hope it answer your question.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.