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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Ankita_Das
New Member

How to filter columns in a visual Rows by measures?

Hello Community,

I have a Power BI report where measures are calculated for each week of the year (up to W52). Using these weekly measures, I developed another measure called DOH (Days on Hand).

Now, I need to categorize the DOH values into ranges such as 0–14 Days, 14–28 Days, etc., and place these ranges into a slicer so that users can filter visuals accordingly. Since measures cannot be directly placed in a slicer, I created a parameter for DOH Range.

Here’s the challenge I’m facing:

The slicer works in the sense that when I select, say, 0–14 Days, the values in the visual update.

However, the visual still shows all rows (e.g., 10 rows) instead of filtering down to only those that fall within the selected range.

In short, the measure-driven slicer updates values but does not filter out rows from the table visual.
Also, I tried keeping the measure in visual filter, but that didn't help. Its giving an error as "Query has exceeded". 


I even tried applying conditional formatting to highlight rows that meet the criteria, but ideally, I want the visual itself to filter down and show only the relevant rows.

Question:
Is there a way to achieve this behavior so that the slicer not only updates the measure values but also filters out the irrelevant rows in the visual?

Thanks in advance for your guidance!

1 REPLY 1
v-sdhruv
Community Support
Community Support

Hi @Ankita_Das ,

A measure is computed at query time ; it doesnt take into account row context. Therefore you are getting all rows even though you filter for a specific value. I would suggest you go for a calculated column. By using a calculated column in slicer, the filtered value will respect the row-context since a calculated column is computed at row level.
Based on your description, I tried replicating the scenario to get the result-
vsdhruv_0-1757577188328.png

Attached file for reference.
If I  misunderstood anything, kindly provide more information about your data/data model as this could also be one of the reasons why the data is not getting filtered.

Thank You.
Let me know if that worked for you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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