Forum Discussion
a_nijsten
2 years agoRegular Visitor
Selecting rows with slicer doesn't work
Hello, I am stuck with a Power BI problem. In the model there is a data table (Testdata) and a date table (Datetable). In the slicers, I have selected the year 2024 and the month of May. Based on t...
- 2 years ago
Hi,
I have solved a similar problem in the attached PBI file.
Hope this helps.
- Anonymous2 years ago
Hi,
Thanks for the solution Ashish_Mathur and elitesmitpatel and foodd provided, and i want to offer some more infotmation for user to refer to.
hi a_nijsten , you can create a measure
MEASURE = VAR a = MAX ( Datetable[Date] ) VAR b = EOMONTH ( a, -1 ) + 1 RETURN CALCULATE ( COUNTROWS ( Testdata ), Testdata[Startdate] <= a, OR ( Testdata[Enddate] >= b, Testdata[Enddate] = BLANK () ), CROSSFILTER ( Datetable[Date], Testdata[Startdate], NONE ) )Outptut
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
a_nijsten
2 years agoRegular Visitor
Thanks. I didn't know how I could enclose the sample files. I have edit my question and enclosed a link with the sample files.
elitesmitpatel
Solution Supplier
2 years agoHey a_nijsten the link is expired , please update the link and if possible share with Google drive or one drive .