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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am new to DAX. I have simple table for just trying DAx time intelligence functions.
dataset:
I created to measures as below:
Result:
Unfortunately the column in sameperiodlastyear is empty but the sum on its footer is correct.
kindly assist how to show the values of the same period last year for each row.
Solved! Go to Solution.
I believe this is because the individual product categories do not have an amount value for last year, the total is summing all of the sales figures except the one from the most recent date in your table as there is no product filter context on the total row in the table. If you were to remove the product column from your table visual, it should work as you'd expect. Also, if you added in more rows for each product with different date values that would also get it to show at row level.
as per your suggestion, I removed product, then it worked. thank you
I believe this is because the individual product categories do not have an amount value for last year, the total is summing all of the sales figures except the one from the most recent date in your table as there is no product filter context on the total row in the table. If you were to remove the product column from your table visual, it should work as you'd expect. Also, if you added in more rows for each product with different date values that would also get it to show at row level.