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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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