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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.