The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
This is my Slicer
I need to figure out in this date range exist anywhere between these rows for each group#?
So I wanna say if
_Min_Date_Slicer is between Min(Inc_Start) and Max(Inc_Start)
__Max_Date_Slicer is between Min(Inc_End) and Max(Inc_End)
FILTER(
'Table', GROUP#=_GRP &&
_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_START]) &&
_MAX_Date_Slicer >= MIN([INC_END]) && _MAX_Date_Slicer <= MAX([INC_END])
)
Can you help with this function? Thanks!
Solved! Go to Solution.
Found solution:
CALCULATE(SUMX(VALUES('TBL'[GROUP#]),1),
FILTER(
'Table', GROUP#=_GRP &&
(_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_END])) ||
(_MAX_Date_Slicer >= MIN([INC_START]) && _MAX_Date_Slicer <= MAX([INC_END]))
)
)
Found solution:
CALCULATE(SUMX(VALUES('TBL'[GROUP#]),1),
FILTER(
'Table', GROUP#=_GRP &&
(_MIN_Date_Slicer >= MIN([INC_START]) && _MIN_Date_Slicer <= MAX([INC_END])) ||
(_MAX_Date_Slicer >= MIN([INC_START]) && _MAX_Date_Slicer <= MAX([INC_END]))
)
)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |