Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I have a Opening Count Measure (Given Below). The Logic which I have applied is:
If you looking for the Opening Count for Jan-2017 then Merge1[Loggd_dt] should be before 01 Jan 2017 and Merge1[Cmplt_dt] values should be from 01 jan 2017 (The data is from year 2005 upto date and the logic is to be applied to overall data). I am taking this measure in a matrix(along with two other measures). I have also applied some slicer in the same page. My other two measures are changing according to the value selected in Slicer. But the measure given below is not changing according to slicer.
Opening Count =
IF (
HASONEVALUE ( DateTable[StartOfMonthDate] ),
CALCULATE (
[Count_rows],
FILTER (
ALL ( Merge1 ),
(
Merge1[LOGGD_DT]
< CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[LOGGD_DT] )
)
&& Merge1[CMPLT_DT]
>= CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[CMPLT_DT] )
)
)
)
)
)
Closed Count =
CALCULATE (
[Count_rows],
USERELATIONSHIP ( DateTable[Date], Merge1[CMPLT_DT] ),
Merge1[STATUS] = "CL"
)InProcess Count =
CALCULATE (
[Count_rows],
USERELATIONSHIP ( DateTable[Date], Merge1[LOGGD_DT] )
)
Count_rows = COUNTROWS(Merge1)
Please help me with the same.
Solved! Go to Solution.
Hi @Sonal27,
Please replace ALL with ALLSELECTED in measure [opening Count].
Opening Count =
IF (
HASONEVALUE ( DateTable[StartOfMonthDate] ),
CALCULATE (
[Count_rows],
FILTER (
ALLSELECTED ( Merge1 ),
(
Merge1[LOGGD_DT]
< CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[LOGGD_DT] )
)
&& Merge1[CMPLT_DT]
>= CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[CMPLT_DT] )
)
)
)
)
)
Best regards,
Yuliana Gu
Hi @Sonal27,
Please replace ALL with ALLSELECTED in measure [opening Count].
Opening Count =
IF (
HASONEVALUE ( DateTable[StartOfMonthDate] ),
CALCULATE (
[Count_rows],
FILTER (
ALLSELECTED ( Merge1 ),
(
Merge1[LOGGD_DT]
< CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[LOGGD_DT] )
)
&& Merge1[CMPLT_DT]
>= CALCULATE (
VALUES ( DateTable[StartOfMonthDate] ),
USERELATIONSHIP ( DateTable[Date], Merge1[CMPLT_DT] )
)
)
)
)
)
Best regards,
Yuliana Gu
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 49 | |
| 32 | |
| 19 | |
| 17 | |
| 17 |