Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a data slicer and a LOB slicer and a Team slicer.
I need to implement forluma =COUNTIFS(DATA!$AN:$AN,"<"&VALIDATION!A3,DATA!$AO:$AO,">="&VALIDATION!A3,DATA!$AD:$AD,"TCS",DATA!$AM:$AM,"VALIDATION")
Where AN:AN is Start date and AO:AO is the end date if I select any date from slicer and Team as TCS from slicer and LOB from slicer as Validation then I need count of dates based on the condition.
Solved! Go to Solution.
Hi @KuntalSingh ,
You can try the following dax:
Create measure:
The slicer selects two dates
Measure =
var _mindate=MINX(ALLSELECTED('VALIDATION'),[Date])
var _maxdate=MAXX(ALLSELECTED('VALIDATION'),[Date])
return
COUNTX(
FILTER(ALL(DATA),
'DATA'[Final Start Date]>_mindate&&'DATA'[Final End Date]<=_maxdate&&'DATA'[Team]="TCS"&&'DATA'[Activity]="VALIDATION"),[Final Start Date])
OR:
The slicer selects one date
Measure2 =
var _select=SELECTEDVALUE('VALIDATION'[Date])
return
COUNTX(
FILTER(ALL(DATA),
'DATA'[Final Start Date]>_select&&'DATA'[Final End Date]<=_select&&'DATA'[Team]="TCS"&&'DATA'[Activity]="VALIDATION"),[Final Start Date])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KuntalSingh ,
You can try the following dax:
Create measure:
The slicer selects two dates
Measure =
var _mindate=MINX(ALLSELECTED('VALIDATION'),[Date])
var _maxdate=MAXX(ALLSELECTED('VALIDATION'),[Date])
return
COUNTX(
FILTER(ALL(DATA),
'DATA'[Final Start Date]>_mindate&&'DATA'[Final End Date]<=_maxdate&&'DATA'[Team]="TCS"&&'DATA'[Activity]="VALIDATION"),[Final Start Date])
OR:
The slicer selects one date
Measure2 =
var _select=SELECTEDVALUE('VALIDATION'[Date])
return
COUNTX(
FILTER(ALL(DATA),
'DATA'[Final Start Date]>_select&&'DATA'[Final End Date]<=_select&&'DATA'[Team]="TCS"&&'DATA'[Activity]="VALIDATION"),[Final Start Date])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Yang,
I tried to used mention below code
and it is the part of 'Rolling Calender'[Dates]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
105 | |
88 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
80 | |
72 |