March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a two tables
1. Meeting Dates
2. Submitted values
The submitted values have a month and year columns. The meeting dates are a single date.
When I select a meeting date in the slicer, I need to filter the submitted values by the same month/year.
So in the example below I have selected 27/01/2022
The submitted values table should be filtered by 01 in month column, and 2022 in year.
I assume I need to create two dynamic measures based on the selected meeting date, but not sure how to do this?
Hi, @nick9one1 ;
You could create a new table as slicer.
Then create a flag measure.
flag = IF(EOMONTH(MAX('Table'[Date]),0)=EOMONTH(MAX('slicer'[Date]),0),1)
apply it into filter.
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@nick9one1 , Create a date table and join with both the dates. One join will be inactive which you can activate using userelationship
This Month =
var _max = eomonth(if(isfiltered('Date'),MAX( 'Date'[Date]) , today()),0)
var _min = eomonth(_max,-1)+1 ,
return
CALCULATE(CALCULATE(Sum(Table[Value]), userelationship(Date[Date], Table[Submit Date] ) ) ,DATESBETWEEN('Date'[Date],_min,_max))
Or use independent date table and filter both
//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('Table', 'Table'[Meeting Date] =_max))
Submit measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -1)+1
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Submit Date] <=_max && 'Table'[Submit Date] >= _min ))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |