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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ade1991
Helper I
Helper I

Calculating Variation per Month

Hi,

 

I have a list of 35 000 sentences from which I extracted key words.

For each sentence, I have a rate and the date, from 2010 to 2019.

 

I would like to be able to see which are the keywords increasing/decreasing the most (variation of average rate per month) between minimum 5 differents years.

 

I'm a little lost to how to structure my DAX formula.

 

I was thinking to :

1) calculate average rate per month : I think I should use CALCULATE + AVERAGE + FILTER, but not sure how to calculate by month

2) I'm a little lost to calculate the variation

3) Display an histogram with the keyword with the TOP variation (increasing/decreasing)

 

I'm looking for some help to structure my think 🙂

 

Thanks

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Ade1991 

It seems you may try to use ALLEXCEPT function.If it is not your case,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.

Reference:https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

Measure =
CALCULATE (
    AVERAGE ( Table[Rate] ),
    ALLEXCEPT ( Table, Table[Year], Table[Month] )
)

Regards,

Community Support Team _ Cherie Chen
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

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Ade1991 

It seems you may try to use ALLEXCEPT function.If it is not your case,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.

Reference:https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

Measure =
CALCULATE (
    AVERAGE ( Table[Rate] ),
    ALLEXCEPT ( Table, Table[Year], Table[Month] )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors