Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
jdelacrettaz
Frequent Visitor

filter between the first day of the month to the current date power bi

Good afternoon, I have a table where in a column frame with a 1 the working days and with 0 on Sundays. My question is the following, I want to show in a card the number of days that go of the month in process but without using the filter date, I want that it is not modified and it goes increasing while the days pass. Always taking the first of the month today. Is there any formula to use?

 

iam using this formulas but give me all days that have the month 

Cantidad de dias = SUMX (
FILTER (
fecha_act,
DATE ( YEAR ( fecha_act[fecha] ), MONTH ( fecha_act[fecha]), 1 )
= DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 )
),
fecha_act[Dias Utiles]
)
 I use this formula but it gives me back the amount of useful days that I will have in the month and I want it to go away for the day that I am
1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @jdelacrettaz 

Please check below measure.Attached sample file for your reference.

Measure = 
CALCULATE (
    COUNT ( fecha_act[Useful Days] ),
    FILTER (
        fecha_act,
        fecha_act[Useful Days] = 1
            && YEAR ( fecha_act[Date] ) = YEAR ( TODAY () )
            && MONTH ( fecha_act[Date] ) = MONTH ( TODAY () )
            && fecha_act[Date] <= TODAY ()
    )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @jdelacrettaz 

Please check below measure.Attached sample file for your reference.

Measure = 
CALCULATE (
    COUNT ( fecha_act[Useful Days] ),
    FILTER (
        fecha_act,
        fecha_act[Useful Days] = 1
            && YEAR ( fecha_act[Date] ) = YEAR ( TODAY () )
            && MONTH ( fecha_act[Date] ) = MONTH ( TODAY () )
            && fecha_act[Date] <= TODAY ()
    )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.