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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
alvinwiyanto91
Regular Visitor

DAX functions break the slicer filter?

Hi All,

 

I have data model as per below:

 

Data Model - All in red are the keys (date type)Data Model - All in red are the keys (date type)

 

Then here's my report view:

 

Filtered for Nov-2021Filtered for Nov-2021

 

I'm trying to use below code (in Measure) to get the staffID from Log table and check if they appear on License table:

Lookup Test =
IF (
    SELECTEDVALUE ( 'VT Log Final'[VT Staff.StaffId] )
        IN VALUES ( 'VT License Usage'[staffID] ),
    1,
    0
)

 

The measure seems break the filter from the date slicer as it shows the October on the Log table visual (Tracked Usage) and it filter to Nov again if I take the measure out. The table also contain hierarchy by Date -> StaffID (Apologise it's not on the picture)

 

My best guess is due to the look up by IN function on the License table's Staff ID and it bring all staff which in the look up but from the all time (not only Nov-21)? I don't really understand why 😞

 

Thanks guys

1 REPLY 1
MFelix
Super User
Super User

Hi @alvinwiyanto91 ,

 

In this case and since you want to pick up the staff ID is to create antoher dimension table that relates to the other two by the staff id then you can use it in a visualization and check if the values are in both tables.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.