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
BReetz
Frequent Visitor

Sum based on week number and location

Hi All,

I am completely new to PBI and am self teaching.  I am trying to add a column to my data set that calculates the percent of positive tests by week number and location so somehow need to subtotal the new tests and new cases by week.  I am able to calculate that percentage on a daily basis, but can't quite get it to subtotal by week.  Any suggestions would be greatly appreciated!

 

Data Set.png

4 REPLIES 4
amitchandak
Super User
Super User

@BReetz , Refer if this blog can help

https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
lbendlin
Super User
Super User

you have a weeknumber column but it doesn't say what it relates to. Do you have a year column too?

I have a separate date table that includes columns for date, year, month name, month number, quarter number and week number.

put your facts into the values area of the matrix visual and the week number in the rows or columns.

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.