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 August 31st. Request your voucher.

Reply
FrancoPowerBi
Regular Visitor

Can't remove filter from visual

Hello everyone, first post here

 

I created a graph that shows the value of a KPI for every shift (A, B, C) for the last 7 days. It works as expected in its own page. However I tried to use it as a tooltip and show it on a table that has DATE, SHIFT, KPI and VALUE as columns. Both DATE and KPI come from the fact table (I think it's called that?) while SHIFT comes from its own dimension table and VALUE is a measure that grabs the value from the fact table (I'm toying with labels with different colors so I have to use a couple of specific measures around that value)

However, when I move the mouse over one row of the table, the graph tooltip will only display the KPI for the last 7 days for the selected shift of that row. I've tried many different things and combinations of removefilters, all, etc but I cannot remove the shift filter. It's very possible I'm using them wrong. Take this as a simplified version of the measure I'm using as my VALUE column.

VALUE =
CALCULATE(
 
    CALCULATE(
        MAX(DATA[VALUE]),
        DATA[Date] >= TODAY() - 7 && DATA[Date] <= TODAY()
    ),
    ALL('DIMSHIFT'[SHIFT], 'DIMSHIFT'[SHIFT_ORDER]) 
)


This latest attempt was from a combination of things I read around here about using nested calculate's and a video that mentioned that the column that affects the order of the shift is also important to keep in mind. I'm open to all suggestions and thanks a lot in advance.
 
Franco
1 ACCEPTED SOLUTION
suparnababu8
Super User
Super User

Hi @FrancoPowerBi 

Try this 

VALUE =CALCULATE(MAX(DATA[VALUE]),FILTER(ALL(DATA),
        DATA[Date] >= TODAY() - 7 && DATA[Date] <= TODAY())
)

View solution in original post

1 REPLY 1
suparnababu8
Super User
Super User

Hi @FrancoPowerBi 

Try this 

VALUE =CALCULATE(MAX(DATA[VALUE]),FILTER(ALL(DATA),
        DATA[Date] >= TODAY() - 7 && DATA[Date] <= TODAY())
)

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.