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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
_chris_
Helper III
Helper III

DAX question

Hi,

 

i have a dataset with some columns whereas my problem is only with the following ones:

 

projectid   operation  value

1           1          50

1           2          50

1           3          50

2           1          70

2           2          70

 

When i create a diagram  and put the project id on the axis and the value as valu, it sums up the values per project. However, I only want to have one time 50 or 70 per project. Can I achieve this with a measure?

 

Thx Christian 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think that you can use this, if I understand this correctly 

Remainder = 
SUMX(
    SUMMARIZE(
        Table,
        Table[project],
        Table[engineer],
        "Remainder",AVERAGE(Table[remainder(project)])
    ),
    [Remainder]
)

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi,

 

Instead of SUM you can use MAX, MIN, AVERAGE, etc. if the value is always the same for the project. I.e.
Function Name = MAX(Table[value]).

 

Regards,

Kristjan

Thx, however, i am afraid my question was not good enough

 

project  operation engineer remainder(project)

1        1         a         10

1        2         a         10

2        1         a          5

2        2         a          5

3        1         b         20

3        1         b         20

 

I want to see the remainng work per engineer in a diagram => a=10+5, b=20

Sorry for not having asked the right question in the fiirst go.

 

BR Chris

Anonymous
Not applicable

I think that you can use this, if I understand this correctly 

Remainder = 
SUMX(
    SUMMARIZE(
        Table,
        Table[project],
        Table[engineer],
        "Remainder",AVERAGE(Table[remainder(project)])
    ),
    [Remainder]
)
AlB
Community Champion
Community Champion

@_chris_

Ok, but what is the rationale for choosing 10+5 and not 10+5+10+5 for a?

Is it one value per project?  Otherwise, what?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors