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

sum of Invoice from specific ID for each Month

Hi Guys,

 

Thanks in advance for attempting to solve my question.

 

I have data of invoice for each person for each month and would want to know how can i get the sum total of invoice for the particular person month wise.

 

Invoice.PNG

 

For example, in the above table i would like to calculate the sum total for Christine Angelon for month of Jan,i.e., 0.44+1.71

 

And also want to calculate which User Name has the highest invoice for that particular month in graphical representation.

 

I believe it is more of Rank formula, if someone could explain the same would be great.

 

Thanks,

Nagesh

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

For requiremnets below:

calculate the sum total for Christine Angelon for month of Jan,i.e., 0.44+1.71

And also want to calculate which User Name has the highest invoice for that particular month in graphical representation.

 

create measures below

sum total =
CALCULATE (
    SUM ( Sheet2[Invoice] ),
    ALLEXCEPT ( Sheet2, Sheet2[Month], Sheet2[User name] )
)

rank = RANKX(ALLEXCEPT(Sheet2,Sheet2[Month]),[sum total],,DESC)

highest invoice= IF([rank]=1,CALCULATE(MIN([User name]),ALLEXCEPT(Sheet2,Sheet2[Month])),BLANK())

3.png

 

 

Best Regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

For requiremnets below:

calculate the sum total for Christine Angelon for month of Jan,i.e., 0.44+1.71

And also want to calculate which User Name has the highest invoice for that particular month in graphical representation.

 

create measures below

sum total =
CALCULATE (
    SUM ( Sheet2[Invoice] ),
    ALLEXCEPT ( Sheet2, Sheet2[Month], Sheet2[User name] )
)

rank = RANKX(ALLEXCEPT(Sheet2,Sheet2[Month]),[sum total],,DESC)

highest invoice= IF([rank]=1,CALCULATE(MIN([User name]),ALLEXCEPT(Sheet2,Sheet2[Month])),BLANK())

3.png

 

 

Best Regards

Maggie

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.