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
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
Anonymous
Not applicable

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
Nathaniel_C
Super User
Super User

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

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

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.