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
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
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.