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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Building a summary table from measures and existing tables?

Hi Everyone

 

I want to present a table of data based on existing measures and columns that presents a summary of the existing data. This will need to change dynamically dependent on the team slicer selection. I can't work out a way so far - it seems like I need to create new rows and columns? I have included a screenshot mock-up I made in excel to demonstrate what I have, and the desired result.

 

thanks!power bi - table help.JPG

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

1. Transform the data in 'Edit Query'.

 

2. Create a measure to calculate the value of the matrix.

 

Please refer to my .pbix.

ggg4.PNG

 

Best regards,
Lionel Chen

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

Anonymous
Not applicable

Hi Lionel

 

Thank you for your help. The use of a measure was in the values field is interesting. Your solution would be great if i had not provided a simplified version of my requirements initially.

 

My report includes time intelligence functions already, so there are report level filters that restrict our figures to a specific time frame. I think this is affecting the measure you wrote, as when I attempt to recreate it, I get no variance column between budget and actual. Could you suggest a solution?

Hi @Anonymous ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

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

Hi @Anonymous ,

 

"I get no variance column between budget and actual."

The [Variance] column is actually the column subtotals label of the matrix. Did you find this?If yes, it may indeed be that the report level filter affects the return value of the measure.

Would you mind sharing your .pbix file? Or give us a sample data with date column. Also please let me see the results you made.

jjj6.PNG

 

Best regards,
Lionel Chen

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

parry2k
Super User
Super User

@Anonymous  In this case unpivot your data and split attribute into two columns, from there everyhting will be super easy

 

- transform data
- select team column 
- right-click, unpivot other columns it will add two columns, attribute, and value 

- split attribute into two columns by space, and rename as per your requirement, let's its called category and type (type is actual and budget) and type is (hours, revenue cost, margin)

- close and apply

To visualize,
- matrix visual:
- add team and type on row
- add a category on columns
- add value on values section

if you drill down to the next level in the rows, it will get what you are looking for. You can add slicer on the team to filter for a specific team. From here onwards everything will be super easy.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors