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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.