Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Sameperiodlastyear function not working in PowerView but working in PowerPivot

$
0
0

Hi,

I have the following calculated field formula in PowerPivot which calculates total expenses of the same month in the previous year

if(HASONEVALUE(calendar[Month]),CALCULATE([Total outflow],SAMEPERIODLASTYEAR(calendar[Date])),BLANK())

In the row labels, I have Expenses heads and in column labels I have month.  In the slicer, I have chosen Financial year 2015-16 (FY is from April 1 to March 31).  Since data is only available for April and May, only these two months appear in the column labels of the Pivot Table.  In yet another slicer, I have chosen only a few Expense heads.

When I drag this field to the row labels a Pivot Table, it works perfect.  However, when I drag this field to a PowerView table, I get a message saying that SAMEPERIODLASTYEAR function will only work with Contiguous dates.

Why is this happening?  Please help.

 

Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>