Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone, i would like to create a slicer including 2 options sum and average like this so that when i need to see the group by of my data by sum or average. For example in a week the data is 7 with the view sum but with the view average the data will be 1 (7/7 days)
Solved! Go to Solution.
Hi,
I believe you already created the table Aggregation including 2 rows (Sum and Avg)
Now you need to create a new Measure like the below:
Aggregation Measure =
Var selectedAgg = SELECTEDVALUE(AggregationTable[Aggregation])
Return
IF(
selectedAgg = "Sum"
, SUM(Table[Amount])
, AVERAGE(Table[Amount])
)
Hi,
I believe you already created the table Aggregation including 2 rows (Sum and Avg)
Now you need to create a new Measure like the below:
Aggregation Measure =
Var selectedAgg = SELECTEDVALUE(AggregationTable[Aggregation])
Return
IF(
selectedAgg = "Sum"
, SUM(Table[Amount])
, AVERAGE(Table[Amount])
)
@Anonymous , Not very clear, You can create a sum or avg measure and then can create a field parameter or calculation group
Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
98 | |
96 | |
59 | |
44 | |
40 |