Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I need help to set some dynamic filtering in a table. I have large list of Projects and what I would like to do is to filter out all projects that have baseline in the future and only include current month baseline.
in the screenshot, there is a filter to only include 2021 ITG4 actual dates and when it comes to ITG4 baseline, i would like to dynamially only show data that is relevant to current month period.
IF ITG4 baseline is 2021-11-15 and we are in september month, this project is not visible but when we are in Novmber month, this project will show in the table.
any idea how to create this dynamic filter/measure?
Many thanks!
BR
J
Solved! Go to Solution.
Hazarding a guess here but try the equivalent to:
Filter out future baselines =
VAR CurrMonth = YEAR(TODAY()) * 100 + MONTH (TODAY())
VAR SelBL = MAX(Table[Baseline])
VAR selP = YEAR(SelBL) * 100 + MONTH (SelBL)
RETURN
COUNTROWS (
FILTER( Table, SelP <= CurrMonth)
)
Then add this measure to the filters for the visual in the filter pane and set the value to 1
Proud to be a Super User!
Paul on Linkedin.
Hi @PaulDBrown , tried out this measure and it is working good!
super nice and many thanks for the support!!
BR
Jala
Hazarding a guess here but try the equivalent to:
Filter out future baselines =
VAR CurrMonth = YEAR(TODAY()) * 100 + MONTH (TODAY())
VAR SelBL = MAX(Table[Baseline])
VAR selP = YEAR(SelBL) * 100 + MONTH (SelBL)
RETURN
COUNTROWS (
FILTER( Table, SelP <= CurrMonth)
)
Then add this measure to the filters for the visual in the filter pane and set the value to 1
Proud to be a Super User!
Paul on Linkedin.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
82 | |
71 | |
64 |
User | Count |
---|---|
116 | |
106 | |
94 | |
79 | |
72 |