Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a measure that brings the maximum date for that particular row. Let's say sold date. One item could be sold many times because it's returned or any other reason.
I want to see the records when I select a date (single selection), that date and previous dates should be included in my matrix kpi
please ask me if you have any questions
thanks
Solved! Go to Solution.
Hi @Anonymous ,
Approve with @amitchandak .
Here is my sample:
Please try:
First create a date table for slicer:
Note: The Date table do not have relationship with your fact table.
Then apply the measure to your visual's filter:
Measure = IF(MAX('Table'[Date])<=MAX('Date'[Date]),1,0)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Approve with @amitchandak .
Here is my sample:
Please try:
First create a date table for slicer:
Note: The Date table do not have relationship with your fact table.
Then apply the measure to your visual's filter:
Measure = IF(MAX('Table'[Date])<=MAX('Date'[Date]),1,0)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello there,
I would appreciate it if you shared pbix file so I can see how it's working
thanks
@Anonymous , If you only need value
You can create a measure like
measure = calculate(Sum(Table[Value]), filter(all(Date), Date[Date]) < Max(Date[Date]) ))
or
new measure =
var _max = maxx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] <=_max))
But you need show date on axis ,then you need slicer on independent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] <=_max))
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |