Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Community,
Is there a way to control the no of rows considered in Power BI Aggregations based on Slicers selected in the visuals in the front end.
Thanks in advance.
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, i created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Slicer:
You may create a measure like below.
Aggregation Measure =
IF(
HASONEVALUE(Slicer[Aggregations]),
SWITCH(
SELECTEDVALUE(Slicer[Aggregations]),
"Sum",SUM('Table'[Value]),
"Average",AVERAGE('Table'[Value]),
"Max",MAX('Table'[Value]),
"Min",MIN('Table'[Value])
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, i created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Slicer:
You may create a measure like below.
Aggregation Measure =
IF(
HASONEVALUE(Slicer[Aggregations]),
SWITCH(
SELECTEDVALUE(Slicer[Aggregations]),
"Sum",SUM('Table'[Value]),
"Average",AVERAGE('Table'[Value]),
"Max",MAX('Table'[Value]),
"Min",MIN('Table'[Value])
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can we use a measure or a calculated column to control the aggregations based on slicer value?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |