Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.
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.
Hi @DanS446 ,
Instead of doing this complex calculation have you tried using the DATEADD or SAMEPERIODLASTYEAR syntax?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Portuguêsyou 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).