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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.