cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Duplicate rows affecting total

Hi,

 

I am getting a nextra row which is coming up in my report table.

This is due ot the fact the name of the company was changed (from Australia to Australia Pty Ltd) causing the value to be diffeerent.

However, since this extra row is added it is affecting my total for this customer creating a double up.

 

Duplicate PowerBI.png

I need to remove the other entry and keep 'Australia Pty Ltd'.

 

Currently my total is calculated by customer with a given date range:

 

MaxLicenseCount = CALCULATE([LicenseCountPerDay], FILTER(SubscriptionAnalyticsMerge, SubscriptionAnalyticsMerge[CreatedOnLocal] = MAX(SubscriptionAnalyticsMerge[CreatedOnLocal])))

 

Wat's the best way in doing this?

I think somehow I need to incorporate the Max license count measure to incorporate the distinct GUID - tenantid and maybe that should d othe trick? I am clearly not a PowerBi expert...

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Duplicate rows affecting total

The problem was that the CSP name had multiple values.

I just created a meaure to get the max of this field and used this as a display column for my table and that resolved it.

 

DistinctName = max(SubscriptionAnalyticsMerge[SubscriptionAnalyticsDetail.kpmg_cspcustomername])

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

Re: Duplicate rows affecting total

Hi @Anonymous ,

I am assuming that you will change it in [LicenseCountPerDay], which you don't show us, but using the ID as it a unique identifier sounds like the way to go.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Re: Duplicate rows affecting total

The problem was that the CSP name had multiple values.

I just created a meaure to get the max of this field and used this as a display column for my table and that resolved it.

 

DistinctName = max(SubscriptionAnalyticsMerge[SubscriptionAnalyticsDetail.kpmg_cspcustomername])

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors