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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DSmith4
Helper II
Helper II

Sum by column

Hello,

 

I have a column, Vendor Name, and would like to take the sum of this column by each vendor. I am trying to do a formula like

 

Vendor Sum = CALCULATE(SUM('data'[Amount]),'data'[Vendor])

 

I am wanting to do this so I can create a filter on the page to only show Vendors with a balance of 100 or greater.

 

Thanks for your help

1 ACCEPTED SOLUTION
JarroVGIT
Resident Rockstar
Resident Rockstar

Hi @DSmith4 ,

Unfortunately, this might not be as straight forward as you might have thought. My recommendation is to create a DAX table with like this:

SummaryTable = SUMMARIZECOLUMNS('data'[Vendor], "Totals", SUM('data'[Amount]))

This table will be evaluated at refresh/load and is therefor not dynamic! You can create a relationship from SummaryTable[Vendor] to 'data'[Vendor] (1 to many) and filter on the column Totals of the SummaryTable above.

Does that suit your needs? If so, please let me know!

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
JarroVGIT
Resident Rockstar
Resident Rockstar

Hi @DSmith4 ,

Unfortunately, this might not be as straight forward as you might have thought. My recommendation is to create a DAX table with like this:

SummaryTable = SUMMARIZECOLUMNS('data'[Vendor], "Totals", SUM('data'[Amount]))

This table will be evaluated at refresh/load and is therefor not dynamic! You can create a relationship from SummaryTable[Vendor] to 'data'[Vendor] (1 to many) and filter on the column Totals of the SummaryTable above.

Does that suit your needs? If so, please let me know!

 

Kind regards

Djerro123

-------------------------------

If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

Keep those thumbs up coming! 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you! This has worked.

 

By chance, do you know how to filter the page on a measure?
I have created a new measure and trying to filter the page.

 

Thanks

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors