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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Make selection without altering pivot table layout

I know the native response  is that if you have a dimension with four values in a pivot table and a filter is applied to select one of them, the entire pivot will change to only show that value within that dimension.  Is there a way to have this so the other dimension values would also remain but would just change to 0 or null in the measure?

 

For example, if you have Category (A,B,C,D) as your columns and you select category B in your slicer then only that one will show and the others will no longer be visible within the pivot. A requirement for an upcoming project is to have A,C, and D still remain but with 0's or null values. Thanks!

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

One way of doing it:

1) Create a duplicate of your dim table with no relationships with your fact table (in my case I'm duplicating "Channel Table")

Model.JPG

 

2) calculate the measures: (using a sum of forecast in this example)

 

Sum forecast disconnected calc = IF(MAX('Channel Table'[Channel]) 
                                 = SELECTEDVALUE('Channel Table (2)'[Channel]), 
                                  [Sum Forecast], 0)

 

and for the totals:

 

Total Disconnected = 
SUMX(SUMMARIZE('Channel Table', 'Channel Table'[Channel], 
            "Total Forecast", [Sum forecast disconnected calc]), 
                                [Total Forecast])

 

Use the disconnected Table as your slicer; in the visual, use the field from the DIM table connected to your fact table

and you get this

Result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

1 REPLY 1
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

One way of doing it:

1) Create a duplicate of your dim table with no relationships with your fact table (in my case I'm duplicating "Channel Table")

Model.JPG

 

2) calculate the measures: (using a sum of forecast in this example)

 

Sum forecast disconnected calc = IF(MAX('Channel Table'[Channel]) 
                                 = SELECTEDVALUE('Channel Table (2)'[Channel]), 
                                  [Sum Forecast], 0)

 

and for the totals:

 

Total Disconnected = 
SUMX(SUMMARIZE('Channel Table', 'Channel Table'[Channel], 
            "Total Forecast", [Sum forecast disconnected calc]), 
                                [Total Forecast])

 

Use the disconnected Table as your slicer; in the visual, use the field from the DIM table connected to your fact table

and you get this

Result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.