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
mogupe
New Member

Pivot table and pivot chart based on dynamically filtered table.

First I need to clarify that I’m limited to use PowerPivot in Excel (no desktop) but I have some flexibility in generating my own customized queries against a SQL Server to bring to the PowerPivot data model. I'm experienced with excel but I feel lost on my first couple of weeks trying PowerPivot.

 

I need to provide a report to senior management in which selecting a project(s) will show the workload on the resources allocated both on the selected projects as well as the not selected projects. A slicer with the resource names will allow the analysis by person. The graph below might give you better idea of the issue.

 

Model

 

Goal

 

I managed to get on measures the values of the work by in the selected project and the others which I use for the pivot chart. But I struggle how to present the data on a pivot table so the selected project AND all others are shown with their respective values. If someone can guide me towards the right direction that will help me. Currently I am blank on ideas and have no clue how to approach it. I can do it with VBA but I really want to start with PowerPivot.

 

Thanks for any tip!

 

1 ACCEPTED SOLUTION
austinsense
Impactful Individual
Impactful Individual

In a nutshell you want everything that's been selected ... that's easy, that's just the regular measure, which you've got ... and everything that's not been selected ... EXCEPT( ALL(TableName[ColumnName]), VALUES(TableName[ColumnName]) ) ...

 

You can think of EXCEPT as saying show me ALL of the values of this column EXCEPT the values that have been selected in this report.

 

Selected Resources = [Measure]
Not Selected Resources = CALCULATE( [Measure], EXCEPT( ALL(TableName[ColumnName]), VALUES(TableName[ColumnName]) ) )

 

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

View solution in original post

2 REPLIES 2
austinsense
Impactful Individual
Impactful Individual

In a nutshell you want everything that's been selected ... that's easy, that's just the regular measure, which you've got ... and everything that's not been selected ... EXCEPT( ALL(TableName[ColumnName]), VALUES(TableName[ColumnName]) ) ...

 

You can think of EXCEPT as saying show me ALL of the values of this column EXCEPT the values that have been selected in this report.

 

Selected Resources = [Measure]
Not Selected Resources = CALCULATE( [Measure], EXCEPT( ALL(TableName[ColumnName]), VALUES(TableName[ColumnName]) ) )

 

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂
Ashish_Mathur
Super User
Super User

Hi,

 

There is no graph visible in your message.  Please repost.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.