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
markefrody
Post Patron
Post Patron

Summarizing and Grouping Data

Hi,

 

I'm having some difficulty in grouping and summarizing the data in Power BI as per link below. Appreciate if you can give me assistance in processing the data as per steps indicated.

  

Link

 

Thanks and best regards,

Mark

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @markefrody,

 

You don't need to make any new table to make this summarization, when possible and as a best practice you should create measures instead of columns or new tables.

 

Create the following 4 measures:

SPHA's_Filled = MAX(SPHA[SPHA's Filled])

SPHAS_FILLED_OFFICE = SUMX(VALUES(SPHA[Job: Name]);SPHA[SPHA's_Filled])


SPHA needed to fulfill = SUM(SPHA[Ticket Man Hours Total]) / 40


SPHA left to fulfill = SPHA[SPHA needed to fulfill] - SPHA[SPHAS_FILLED_OFFICE]

The first one is just an auxiliary measure the other 3 is the ones you should use on your visuals, as you can see below the second measure works with all the Job:name but also without them making the calculations you need to make the grouping. You can use the measures in tables or in other types of visuals.

 

spha.png

 

In attach you can find the PBIX

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

7 REPLIES 7
MFelix
Super User
Super User

Hi @markefrody,

 

You don't need to make any new table to make this summarization, when possible and as a best practice you should create measures instead of columns or new tables.

 

Create the following 4 measures:

SPHA's_Filled = MAX(SPHA[SPHA's Filled])

SPHAS_FILLED_OFFICE = SUMX(VALUES(SPHA[Job: Name]);SPHA[SPHA's_Filled])


SPHA needed to fulfill = SUM(SPHA[Ticket Man Hours Total]) / 40


SPHA left to fulfill = SPHA[SPHA needed to fulfill] - SPHA[SPHAS_FILLED_OFFICE]

The first one is just an auxiliary measure the other 3 is the ones you should use on your visuals, as you can see below the second measure works with all the Job:name but also without them making the calculations you need to make the grouping. You can use the measures in tables or in other types of visuals.

 

spha.png

 

In attach you can find the PBIX

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks @MFelix! Your solution worked! Kudos to you Sir! 🙂

MFelix
Super User
Super User

Hi @markefrody,

 

there is no file in the link you provided.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix,

 

Please try this:

 

Link

Anonymous
Not applicable

Hello,

 

 

 

Goto to Data pane  and 

Click Edit Queries

Select the query you want to aggreagte

Click Group By

 

 

 

1.PNG

 

Let me know how this works..

Anonymous
Not applicable

The above solution will give you Group by "Job Name "

For Group by "Office"

 

 

We need to Duplicate this table and later do a group by 

for duplicate this table  Click on Get data-->blank query --> in formula bar write "= Table Name " this will duplicate

 

Once you have duplicated do a group by as shown in above step with the column as "Office".

 

 

Drag  this field into visualisation

Thanks,

Aditya 

Thanks @Anonymous for the suggestion. Have a nice day ahead.

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.