cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vamshi2020
Helper II
Helper II

Sum of Value by Distinct Member Id

Hi All,

 

I have a Table with few columns such as member id, start date, end date , provider name etc, value etc...my value column is a calculated column with value=1 formula. so this column contains 1 for all rows. 

 

Requirement is to calculate "sum of value for distinct member id ". Please help me to achieve this .

 

TIA

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Vamshi2020 , Try a measure like

 

sumx(values(Table[member id]), calculate(max(Table[Value])))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Vamshi2020 , Try a measure like

 

sumx(values(Table[member id]), calculate(max(Table[Value])))

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors