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

calculate sum based on another column distinct values

Hi Team,

     how to find sum using another column distinct values, after unpivoting the the columns im getting results like this

Capture1.PNG

 

i want to sum of Total column,    i need result is 3.7  but im getting 11.1

calculate the sum based on another column distinct values  How to solve this?

 

 

 

Thanks,

Ranga

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous    it's work but i need other column to build the table

 

i'm looking measure only i have used below measure

 

Total sales = SUMX(DISTINCT('Table'[Category]),MAX('Table'[Total]))
 
it's work for me
 
Thanks

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I think what you want can be done in Power Query - Transform - Group by.

 

jacobs_5-1623930855751.png

 


When I do that I get the results you seek: 

 

jacobs_6-1623930855753.png

 

I used these settings for the step:

 

jacobs_7-1623930855755.png

 

Let me know if it works

 

Anonymous
Not applicable

@Anonymous    it's work but i need other column to build the table

 

i'm looking measure only i have used below measure

 

Total sales = SUMX(DISTINCT('Table'[Category]),MAX('Table'[Total]))
 
it's work for me
 
Thanks

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.