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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sixtoquiles
Helper II
Helper II

Total from distinct values

HI, I need help with my distinct sum.

 

I have many DistricDesc with the same target, but i just want one with the his target. I did, and I want a total of all target in the table, (show below) but the total is incorrect, is supose to give me 49. Any can help me. if need more info, let me know.

 

sumtargets = SUMX(DISTINCT(vw_pwrbi_altas[DistrictDesc]),[targetaltas])

 

Capture.JPG 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

Adding the numbers in your visual totals 48. There must be some other reason you are not getting 49



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
MattAllington
Community Champion
Community Champion

Adding the numbers in your visual totals 48. There must be some other reason you are not getting 49



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

my mistake, am using a excel table for refencen and in my excel table give 49, decimal number give me worng result.

 

Thanks @MattAllington

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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