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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Sum based on three distinct

Hi!


I have a set of data that cannot be changed and it looks like vizualized below. I want to based on distinct value of the column "Project", the distinct value of the column "Department" and as well as a distinct value of the column "Calculation" to sum the values in column "Values".

 

I created this table by entering 

Avdelning =
DISTINCT(SELECTCOLUMNS(Economy;"Project";Economy[Project];"Department";Economy[Department];"Calculation";Economy[Calculation]))

 

Help.png

 

 

Could somebody help me?

1 ACCEPTED SOLUTION

It does not really help. 

 

I guess you will be needing the SUMMARIZECOLUMNS-function:

Avdelning =
SUMMARIZECOLUMNS (
    Economy[Project];
    Economy[Department];
    "Something"; SUM ( Economy[Whatever] )
)

 

 

View solution in original post

4 REPLIES 4
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Anonymous 

 

I don't understand your desired outcome or your data. Could you please read this: How to Get Your Question Answered Quickly ,

and reformulate your question?

 

Cheers,
Sturla

Anonymous
Not applicable

Hi!


Sorry, I realized it wasn't the best description. 

I want something like SUMIFS in excel. I want to sum the costs based on project, department and calculation.

Is this more clear?

It does not really help. 

 

I guess you will be needing the SUMMARIZECOLUMNS-function:

Avdelning =
SUMMARIZECOLUMNS (
    Economy[Project];
    Economy[Department];
    "Something"; SUM ( Economy[Whatever] )
)

 

 

Anonymous
Not applicable

Thank you for your help sir. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.