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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mrlang02
Frequent Visitor

Independent control of slicer on measure and visual behavior

Hi all,

 

I have built a report using the following measure.  It provides a way to report an overall batch average of the "VALUE" field.  If you need an explanation of why I did it this way, see this thread.  https://community.powerbi.com/t5/DAX-Commands-and-Tips/Ignore-measure-subgroups-when-charting-and-in...

 

AverageMeasure:=CALCULATE ( SUM ([Value]), ALLSELECTED( Table ) )
    / CALCULATE ( COUNT (Table[Batch]), ALLSELECTED( Table ) )

I now have another problem to solve.  The above code allows me to calculate the average (XBAR) in the report graph below, based on the input values that are filtered by the 2 slicers.  Is it possible to use the slicers to still perform this function but NOT control the visible range of values?  For instance, can I compute XBAR based on the date range in the slicers, but plot it extended past the date ranges of the slicer?  

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You could probably accomplish this with a disconnected date table.  Use one date table to control the date range plotted and the disconnected table to control what dates are used to calculate the XBAR.

The approach, albeit not your exact use case, can be found here: https://www.blue-granite.com/blog/disconnected-table-power-bi

 

Let me know if that helps.  

Eric

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

You could probably accomplish this with a disconnected date table.  Use one date table to control the date range plotted and the disconnected table to control what dates are used to calculate the XBAR.

The approach, albeit not your exact use case, can be found here: https://www.blue-granite.com/blog/disconnected-table-power-bi

 

Let me know if that helps.  

Eric

 

 

Eric,

 

Thank you very much.  This is exactly what I was looking for! Woman LOL

 

Best,

Meghan

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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