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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
beaoliv123-_
Helper I
Helper I

Calculate until date

Hi there, I'd like to know what were my customers from the beggining until last month. How do I do this filtering?

Thanks 

2 REPLIES 2
isabella
Employee
Employee

I did a local test,you can set filters like this:

isabella_0-1654496954242.png

 

 

Then you can create a measure to calculate the distinct count of customer before this month

 

customerCountBeforeThisMonth = CALCULATEDISTINCTCOUNT('Table'[customer]),FILTER(ALL('Table'),[date]<DATE(2022,6,1)))

 

 

 

isabella_1-1654496954243.png

 

 

Best Regards,

Community Support Team _Isabella

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, 

Not a lot of detail, but does this help you?

Value from start to EndOfLastMonth = 
CALCULATE(
    SUM(SalesTransactions[Amount]) // Sum amount
    ,'Calendar'[Date] <=EOMONTH(MAX('Calendar'[Date]),-1) //Filter for end of month
    )

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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