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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Need help with a formula

I need to create a formula that summarize numbers in table based on column text i decide.

 

This is my table

tobkres_1-1662974496925.png

I want it to do this:

 

accountNumber = 5520 summarize "amountInBaseCurrency"

 

This should take all 5520 cells in "accountNumber" and summarize the value in "amountInBaseCurrency"

Any idea how i can do that?

The output would be sum of all values in "amountInBaseCurrency", but only those that have 5520 in "accountNumber" 

 

All help is appreciated.

Thanks

 

6 REPLIES 6
Anonymous
Not applicable

I just did some more testing, and it seems like it works if i set "accountNumber" to format as TEXT - but that does not look logically correct to me, as account number is a "number"?

 

Is there a way i can format it in the function, without having to format the whole table?

Anonymous
Not applicable

It is very strange i think. As the formula looks correct to me.

Anonymous
Not applicable

I set them both to whole numbers as the formatting

tobkres_2-1663058864383.png

tobkres_3-1663058880071.png

 

Anonymous
Not applicable

Hmm. There's an error.

tobkres_1-1663058512752.png

 

 

Karthik12
Post Patron
Post Patron

@Anonymous I hope it will work with "account number in normal slicer" and "account balance" in card visual.

 

Anonymous
Not applicable

Hi, let's see if this works:
Calculate(sum('Table'[amountInBaseCurrency]),FILTER('Table', 'Table'[accountNumber] = "5520"))

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.