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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
joshua1990
Post Prodigy
Post Prodigy

WTD based on current Month

Hello everyone!

I would like to compute a WTD sales measure based on the current month.

For this purpose I have a TRUE/FALSE column in my calendar table.

This filter is used on the report page.

Then I have a WTD measure:

SalesWTD = 
CALCULATE (
    [Sales],
    FILTER (
        ALL ( 'Calendar' ),
        'Calendar'[Fiscal Year]
            = MAX ( 'Calendar'[Year] )
            && 'Calendar'[Date]
                <= MAX ( 'Calendar'[Date] )
            && 'Calendar'[Fiscal Week]
                = MAX ( 'Calendar'[Fiscal Week] )
    )
)

 

Unfortunately, this measure is just running if a week is selected. It is not working with a currentMonth filter.

 

Do you know how to adjust this measure to get the WTD sales for the current week? Without a current week measure! I have also a MTD measure in the same matrix

2 REPLIES 2
Fowmy
Super User
Super User

@joshua1990 

Can you share your table or matrix where you try to use this formula?

You mentioned about Report Page filter? which measure is going in there?

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy Thanks for your support!

 

The matrix has this structure:

AreaSales WTDSales MTD
5005000
B300650
C250357

 

The "IsCurrentMonth" measure is used to filter the whole page for the current month. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.