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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
DanS446
Helper I
Helper I

"Dynamic" growth not calculating correctly on DAY

I made a measure to calculate growth compared to last year, it changes what calculates based on the graph displayed data (month, week, day) using "ISFILTERED". It calculates fine for month and week, but for DAY its showing and incorrect value. What could be the problem? Its the same formula in all cases using different date field to calculate.

 

DanS446_0-1709301080039.png

DanS446_3-1709301320533.png

DanS446_2-1709301249220.png

DanS446_4-1709301377499.png

 

 

 

 

3 REPLIES 3
DanS446
Helper I
Helper I

I "kind" of solved it, i had to add Month filter for both "current" and "last year" variables. Before returning a value, it compares if "last year value" is 0 or blank since there is no data in that year, meaning the difference will give equal to "current" value, so it returns Blank. But sometimes on DAY level there are values for days with no data on last year. It works fine on Month and Week level, i even made one similar to compare to previous Month instead.

 

DanS446_0-1709315368133.png

 

 

MFelix
Super User
Super User

Hi @DanS446 ,

 

Instead of doing this complex calculation have you tried using the DATEADD or SAMEPERIODLASTYEAR syntax?


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



you cant work with columns row by row on measures right? thats why that measure tries to filter everything it needs and gets average of the % value for that section of data.

Can you suggest an example of code with DATEADD? (same...lastyear would only work for a single case).

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors