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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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