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

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.

Reply
majdkaid22
Helper V
Helper V

predictive measure

 

H

i guys,

 

I have a MTD measure for Revenue. 

 

I would like to have a measure  to predict what would be the closing month Revenue, based on the the current revenue. 

 

I know the logic would be MTD_Revenue / past number of current month trading days * by remaining trading days of current month. 

 

I know it would invlove using the Calaendar, which happenes that I have a good one. 

Calendar.PNG

 

Note: I would like to use [Is TradingDay" as a filter, so only actual trading days are counted. 

 

I appreciate your help in advance.

 

Majd

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

Hi, In this scenario, to calculate the past/ remaining trading days in current month. You can filter the table context based on TODAY() and IsTradingDay. The count measure can be like:

 

 

Past Trading Days in Current Month=
CALCULATE (
    COUNTA ( Calendar[Date] ),
    FILTER (
        ALL ( Calendar[Date] ),
        Calendar[Date] >= DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 )
            && Calendar[Date] <= TODAY ()
            && Calendar[IsTradingDay] = 1
    )
)

 

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Employee
Employee

Hi, In this scenario, to calculate the past/ remaining trading days in current month. You can filter the table context based on TODAY() and IsTradingDay. The count measure can be like:

 

 

Past Trading Days in Current Month=
CALCULATE (
    COUNTA ( Calendar[Date] ),
    FILTER (
        ALL ( Calendar[Date] ),
        Calendar[Date] >= DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 )
            && Calendar[Date] <= TODAY ()
            && Calendar[IsTradingDay] = 1
    )
)

 

 

Regards,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.