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

Sum of a measure by month and by cathegory

Hello All, 

I am new to Power Bi and have a specific requirement, that I have been trying to figure out for a while. I appreciate the help!

Data:  looks as follows.

- posting date: when the Tasks have been completed and reported. 
- Dauer: duration of the task (production of items)

- Output_quantity: amount of items created.

- Gruppierung: several products (item_number) belong to a group. There are three different Groups. 

MrGuaca_0-1667912569143.png

 

Visual: 

MrGuaca_1-1667912706234.png

I can get the average time for one item Dauer/Output_quantity with the measure 2: 

MrGuaca_2-1667912857014.png

I would now like to get the sum of the averages per cathegory per month. see the red squares. 
Ideally i would get the following values. 

MrGuaca_3-1667913204718.png

 




1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @KaiFrehner ,

 

Here I suggest you to create a new measure based on [Measure 2].

NewMeasure with Correct Subtotal =
SUMX (
    SUMMARIZE ( 'TableName', 'TableName'[Gruppierung], 'TableName'[Item_No] ),
    [Measure 2]
)

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
KaiFrehner
Frequent Visitor

perfect - Thank you!

v-rzhou-msft
Community Support
Community Support

Hi @KaiFrehner ,

 

Here I suggest you to create a new measure based on [Measure 2].

NewMeasure with Correct Subtotal =
SUMX (
    SUMMARIZE ( 'TableName', 'TableName'[Gruppierung], 'TableName'[Item_No] ),
    [Measure 2]
)

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

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.