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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
maurcoll
Helper III
Helper III

Filtering with a measure

Good Afternoon,

 

I have the below measure for calculating if an employees training is still valid after a selected date.


training_valid=

 VAR _SelectedDate = max('Date'[Date])
  VAR _Result = IF( MAX('employee_training'[training_expiry_date])>= _SelectedDate, "Valid", "Expired")
 
  RETURN
  _Result


This works perfectly well, what i now want to be able to do is create a card/measure for the number of employees that are working on the selected date and also where the training is valid.
I cant seem to add the above measure in as a filter on a card or a table if iuse a measure of 
 
Total Working=
Calculate(
distinctcount ('employee'[employee_number]),
'employee_rota'[rota] = "working")

Is it possibe to filter using the measure for valid training
 
Thank you
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@maurcoll You should be able to add a measure in the Filters pane at the visual level.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@maurcoll You should be able to add a measure in the Filters pane at the visual level.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi I need to appy the filter to a card visual, it does not let me do this. This is all i see and it does not let me enter anything into the contains box.

maurcoll_0-1716279713413.png

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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