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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
aglpr
Advocate II
Advocate II

Maximum SUM of each month/year group

Hi all,

 

It seems this calculation is should be simple and easy, but I can't figure out how to put it into DAX code

 

So, I have this table data, containing social media paltforms and the number of the followers on each month

 

aglpr_0-1705047129322.png

 

And I want to put it into a graph bar for yearly comparison

 

aglpr_1-1705047181581.png

What I want to achieve is sum of grouped follower number by platform from the max of month per year (which means the sum of follower number of every December month), and also includes the past calendar month of running year.

 

I tried to use the Maximum function on the "Followers" metric, but I forgot that it will use the maximum number from the whole year data. I have tried to use the Group By function on the power query as well with no luck.

 

Should I write a DAX measure or this or is that any ther way to approach this?

 

Thanks much!

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @aglpr ,

Any update on this? Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors