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.
Ashish_Mathur
Super User
2 years agoHi,
I have solved a similar problem in the attached PBI file.
Hope this helps.
- a_nijsten2 years agoRegular Visitor
Thank you very much for your help! This is a great solution that I wouldn't have been able to come up with on my own. Additionally, this has helped to expand my knowledge. This isn't taught in courses.
- Ashish_Mathur2 years ago
Super User
You are welcome.