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

Totals Summing All Table

Hi,

 

I have the following data. I would like the max remaining labor units to sum correctly. When i use the sum of the remaining labor units its summing the whole of the table.

 

Green Values are Correct, Pink Values are not what i want. The correct value should be 1425.6

 

s1.png

 

Thanks

5 REPLIES 5
AlexDawson111
Frequent Visitor

Thanks for the reply, i have tried the following. 

 

SUMX is too high  

 

s2.png

 

SUMMARIZE shows the following

 

s3.png

 

Thanks

Hi @AlexDawson111 ,

 

Yes, when I said to summarize the table, it was for you to summarize the table inside the previous formula. Specifically:

 

SUMX ( SUMMARIZE ( ... ), [Max of Remaining Labor Units] )

See if it works. If it doesn't, please specify how you calculate this [Max of Remaining Labor Units] measure.

Yossarian
Helper I
Helper I

Hi @AlexDawson111 ,

 

Just try SUMX ( Table, [Max of Remaining Labor Units] ).
If it is still to large a number, you should then summarize the table ( SUMMARIZE(Table, Table[Project ID], Table[Task Code], Table[Sub Discipline Group], Table[Week End Date] ).

 

Hope it helps.

Thanks,

 

So the SUMX(SUMMARIZE also was too high.

 

Ill explain what im trying to acheive. I have a fact table that holds remaining units. Each row in the table is a week end date.

 

For example columns are :- TASK ID, REMAINING UNITS, WEEKEND

 

So there can be many tasks with changing remaining units on each row.

 

I have dimenisons. TASK and DISCLIPLINE. What i want to achive is sum the remaining units per week end by DISCLIPLINE and TASK. Then i can have a line chart over time that will SUM the remaining UNITS per week end by DISCIPLINE. I can also create a table visual that holds each task as a row and a week end as a column with the value being the sum of remaining units.

 

Thanks

 

Alex

Hi @AlexDawson111 ,

 

As you're describing, the measure at hand should be just a SUM and if so it should work normallly on the table visual. On the other hand, it seems to me that the measure you are actually using is based on MAX.

 

Adding to that, I am not sure how you set up your model - is DISCIPLINE on the same table as TASK ID or are they in separate tables? Maybe it is easier if you share a jpg of the model and of the measure you are using.

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.