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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SLONG0718
Frequent Visitor

How to recreate a SUMIFS based on multiple criteria with sum rage over 3 columns

I have attached an image that shows the original sample table and how I modified the table to reshape the data with the following formula in excel.  I am trying to replace this in Power BI so i am able to create a stacked column chart with the multiple years on the X-axis.  I am open to suggestions to how I can achieve this and or if I need to take an alternate approach.  

 

Any help is appreciated!!

 

SLONG0718_0-1711037471964.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SLONG0718 ,
You can try unpivot other columns to accomplish your goals.
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1711334546411.png

Open power query and choose Theme and stage, then right click unpivot other columns

vheqmsft_1-1711334674097.png

Close and apply and create a stacked column chart
Final output

vheqmsft_2-1711334744096.png

Best regards,

Albert He

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @SLONG0718 ,
You can try unpivot other columns to accomplish your goals.
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1711334546411.png

Open power query and choose Theme and stage, then right click unpivot other columns

vheqmsft_1-1711334674097.png

Close and apply and create a stacked column chart
Final output

vheqmsft_2-1711334744096.png

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Gabry
Super User
Super User

you can try sumx with your if conditions

would you happen to offer any examples?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.