Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I was wondering if you guys can help with tips and tricks on how to slice the data based on an aggregated column.
I have raw data stored in the Sessions table like this:
Sessions table
Table: Sessions
Different articles are viewed on several websites. I need to aggregate the data to see the number of views for each article with the ability to filter by website and date. Everything looks good in the table, where Views = sum( 'Sessions'[views]).
What I want to do is to make the 'Views' slicer dynamic based on other filters selection.
When no filters are selected: Views slicer should show a range between 111 and 220:
View: no filters selected
When the 'Website1' filter is selected, the Views slicer should show a range between 100 and 200, and if I change the range on the slicer to be between 100 and 150, the table should show only article 1.
View: website1 filter selected
I was thinking of creating a measure to calculate the total amount of views, but I can't use measure in the slicer. Any word of advice will be helpful on how to approach it in the most efficient way.
Thank you
@mikhailry , assuming view is measure and you want to control it by slicer viewslicer
Measure =
var _min = minx(allselected(Viewsslicer), Viewsslicer[values])
var _max = maxx(allselected(Viewsslicer), Viewsslicer[values])
return
Sumx(values(Table[Article]), if([Views] >=_min && [Views] <=Max , [View], blank()))
Hey @amitchandak ,
Thanks for your response.
I'm not sure that I'm following your solution. Let me try to elaborate on the problem.
Per my understanding, I need to create the following:
1. Measure to calculate Total Views in the table. I guess it should be something like that:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |