Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I need additional help based on a previous solution: Filter Table based on MAX of date slicer
What I need is to not only filter a table based on a "Before"-based date slicer (already solved above), but to also show the same results in a chart filtered using the same date metric / slicer interface.
Any thoughts?
Thanks in advance,
Adam
Solved! Go to Solution.
@AFinster , you can not put a visual level filter for that, you need to have measure like this
measure=
var _min =MAxX('Date','Date'[Date])
return
CALCULATE('Table'[Sales], Filter(Date,'Date'[Date] =_min ))
@AFinster , you can not put a visual level filter for that, you need to have measure like this
measure=
var _min =MAxX('Date','Date'[Date])
return
CALCULATE('Table'[Sales], Filter(Date,'Date'[Date] =_min ))
Thanks @amitchandak ,
I modified the measure to suit my examples:
as the CALCULATE() function needed the SUM() function in the 1st parameter for it to work. This worked exactly as I needed!
User | Count |
---|---|
74 | |
71 | |
42 | |
31 | |
28 |
User | Count |
---|---|
99 | |
92 | |
50 | |
49 | |
46 |