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

View all the Fabric Data Days sessions on demand. View schedule

Reply
cchp07
Frequent Visitor

Day Over Day Variance for Week

am working on a report that I need to show a day over day variance for a 7 day week. I already have a variance Chart to show week over week which I have found on another topic. I have tried to use that same method for the day over day variance, but I am not getting what I am looking for.

 

ExampleExample

I get the daily totals correct, but the variance usually shows up 0 which I do not believe is right.

Daily Variance = var lastDayAmount = CALCULATE(sum(AS400[Y1NWGT]), filter(all('AS400'), 'AS400'[Weekday #]=min(AS400[Weekday #])-1)) return DIVIDE(sum('AS400'[Y1NWGT])-lastDayAmount,lastDayAmount,0)

 

I tired: 

 

Variance = var lastWeekAmount = CALCULATE(sum(AS400[Y1NWGT]), filter(all('AS400'), 'AS400'[Week Number]=MIN(AS400[Week Number])-1)) return DIVIDE(sum(AS400[Y1NWGT])-lastWeekAmount,lastWeekAmount,0)
 
And got: 
 
Use Weekly VarianceUse Weekly Variance
 
The percentages are off. They all show negative.
 



1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @cchp07 

 

I tried your measure and it works fine in my simple data, I have no idea about what happened in your data. would you mind sharing me your dummy pbix which let me dig the point?Make sure you've removed the confidential info before.  thanks!

 

Best regards,

Dina Ye

 

Community Support Team _ Dina Ye
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
Top Kudoed Authors