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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Selected Month Value for all Months

Gentlemen, good afternoon.

I would like that in a table that appears every month, it was possible to create an average that would bring the result of a selected month for all the months in the table, I would like to send an example of how I would like it to be done and another one with a few attempts.

paulopaivacerti_0-1633707810911.png

paulopaivacerti_1-1633707821080.png

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Basically the DS_MES_ABR column should comes from another table so that you can create a measure like this:

Select = 
CALCULATE (
    SUM ( dim_calendario[Realizado] ),
    FILTER (
        ALL ( dim_calendario ),
        'dim_calendario'[DS_MES] = SELECTEDVALUE ( 'Table'[DS_MES] )
    )
)

vyingjl_0-1634006760388.png

 

Best Regards,
Community Support Team _ Yingjie Li
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

4 REPLIES 4
Anonymous
Not applicable

@colacan , the expected result should be this!

 

paulopaivacerti_1-1633721366148.png

 

Hi @Anonymous ,

Basically the DS_MES_ABR column should comes from another table so that you can create a measure like this:

Select = 
CALCULATE (
    SUM ( dim_calendario[Realizado] ),
    FILTER (
        ALL ( dim_calendario ),
        'dim_calendario'[DS_MES] = SELECTEDVALUE ( 'Table'[DS_MES] )
    )
)

vyingjl_0-1634006760388.png

 

Best Regards,
Community Support Team _ Yingjie Li
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! @colacan ,

 

I did as you suggested, but it had no effect!!!

paulopaivacerti_0-1633721170870.png

 

 

 

colacan
Resolver II
Resolver II

@Anonymous  Hi,

 

VAR Selected_Month = SELECTEDVALUE(dim_calendario[DS_MES_ABREVIADO])

RETURN Calculate([Validacao], dim_calendario[DS_MES_ABREVIADO] = Selected_Month)

 

Thanks,

 

Please mark this as soluntion if this helped you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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