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! Learn more

Reply
Anonymous
Not applicable

Issue with Custom Calculations and Filtering?

I am having issues with some of my calculations when I try to show it by region or store banner. I only have weekly data, so I have it by week start date, Week #, and Week Year. I have calculations for Sales, Sales LY, Sales YTD, and Sales YTD LY, I calculated these using VAR and FILTER functions. Basically what I'd like to do is have a visual showing the % Growth YoY and % Growth YTD, by Banner (By Region for some similar files). It appears to calculate correctly when I just put in week start with the calculations, but when I take out the week start, and try to calculate it based on Banner or Region or anything really, all of the calculations show as blank except for the total sales. I've tried looking at tons of videos and solutions online and have been left really frustrated, as I'm thinking this is probably an easy fix... Anyone have any idea what I am doing wrong?

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

Do you have a Calendar table with a relationship to the Week Start of your sales?

 

I would create one calendar dimension table and make my calculations based on that table.

 

Can you share a little more information about your model maybe a mockup data setup?

 

Please see this post regarding How to Get Your Question Answered Quickly:

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490 (courtesy of @Greg_Deckler).

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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