Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Solved! Go to Solution.
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
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!
Best,
Meghan
User | Count |
---|---|
84 | |
82 | |
66 | |
52 | |
48 |
User | Count |
---|---|
100 | |
49 | |
42 | |
39 | |
39 |