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
preetha_127
Frequent Visitor

undefined

Hi Team,

I have same multiple invoice id with different invoice amount.I want sum those invoice amount against one invoice.bi.PNG

 

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

Hi @preetha_127

 

You can create a calculated column and measure like below: 

 

InvoiceNew = LEFT('Table'[Invoice],3)
 
TotalByInvoice = CALCULATE(SUM('Table'[Invoice amount]),FILTER('Table','Table'[InvoiceNew]=MAX('Table'[InvoiceNew])))
 
q1.PNGq2.PNG

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
preetha_127
Frequent Visitor

Hi team,

I have multiple report,also i have summary of all the report.If i click one report in summary page ,it will navigate particular report.Help me..

 

 

 

 

Thanks & Regards,

Preetha

amitchandak
Super User
Super User

@preetha_127 , Same solution as @v-qiuyu-msft , But in case you can have more than 3 digit

Try like

New Column =

var _len = search("(",[invoice] ,,0)

return

if(_len =0 ,[Invoice],left([Invoice],_len-1)

v-qiuyu-msft
Community Support
Community Support

Hi @preetha_127

 

You can create a calculated column and measure like below: 

 

InvoiceNew = LEFT('Table'[Invoice],3)
 
TotalByInvoice = CALCULATE(SUM('Table'[Invoice amount]),FILTER('Table','Table'[InvoiceNew]=MAX('Table'[InvoiceNew])))
 
q1.PNGq2.PNG

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.