This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I have data model as per below:
Data Model - All in red are the keys (date type)
Then here's my report view:
Filtered 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
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 27 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 25 | |
| 25 |