cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Month Accumulated

I want to make a Measure with respect to Column C, in Column D you have the obtaining of the càlculo, if you had a contribution, in advance thanks

alvaradol_0-1634601895819.png

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

 

According to your description, I think you can create a meausurea to display your desired result.

Like this:

Measure =
IF (
    MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) <= 6,
    AVERAGEX (
        FILTER (
            ALL ( 'Table' ),
            YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
        ),
        [MONTO]
    ) * 14,
    IF (
        MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) = 12,
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                    && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
            ),
            [MONTO]
        ),
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                    && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
            ),
            [MONTO]
        )
            / ( MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) + 1 ) * 14
    )
)

vjaneygmsft_0-1635416616978.png

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,
Community Support Team _ Janey

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

 

According to your description, I think you can create a meausurea to display your desired result.

Like this:

Measure =
IF (
    MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) <= 6,
    AVERAGEX (
        FILTER (
            ALL ( 'Table' ),
            YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
        ),
        [MONTO]
    ) * 14,
    IF (
        MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) = 12,
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                    && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
            ),
            [MONTO]
        ),
        SUMX (
            FILTER (
                ALL ( 'Table' ),
                YEAR ( [FECHA] ) = YEAR ( SELECTEDVALUE ( 'Table'[FECHA] ) )
                    && MONTH ( [FECHA] ) <= MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) )
            ),
            [MONTO]
        )
            / ( MONTH ( SELECTEDVALUE ( 'Table'[FECHA] ) ) + 1 ) * 14
    )
)

vjaneygmsft_0-1635416616978.png

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,
Community Support Team _ Janey

View solution in original post

amitchandak
Super User
Super User

@Syndicate_Admin , if you have date, date table and time intelligence can help

 

example , based on base column sales and date table

 

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Avg YTD Sales = CALCULATE(AverageX(Values('Date'[Month Year]),calculate(Sum(Sales[Sales Amount]))),DATESYTD('Date'[Date],"12/31")) *14

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors