Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61806

Issue in Comparing Prior Period Sales

$
0
0

Hi Everyone,

I am new to Power BI , I Need an assistance in Comparing the previous Period Sale with Last To last Month Sale. 

In my Scenario If current monthis april,  user has to take prvious month Sale and Compare it with selected periods prior to March.

 

My Last month Sale is  Working Fine

Last Period Sale = CALCULATE(SUM('fact SalesInvoice'[SalesAmountBase])+SUM('fact SalesInvoice'[DiscountAmountEndBase]),FILTER('dim Date','dim Date'[rank]='dim Date'[CurrentMonthRank]-1 ))

 

-->  I used a Rank Column for Month-Year  using Rankx for Ranking the Prior Months

 

My selected period Sale is working Fine

Selected Period Sale = CALCULATE(SUM('fact SalesInvoice'[SalesAmountBase])+SUM('fact SalesInvoice'[DiscountAmountEndBase]),FILTER('dim Date','dim Date'[rank]<='dim Date'[CurrentMonthRank]-2 && 'dim Date'[rank]>=('dim Date'[CurrentMonthRank]-1)-[Selected Period]))

 

Now I pulled Selected Period Sale and customers to a bar chart and a table, and put visual level filter that Last Period Sale <=0 to find Lost Customers in Last Period Compared to selected Period.

 

My Report is also looking Fine.

Report.png

But When I Add Item Code Also as aRow in Table Visual, It shows Another List Of Customer which are not lost Customers.

Please see the below results Which is wrong.

 

Report1.png

 

Urgent Assistance is Appreciated....

 

Thanks

Prathyush

 

 


Viewing all articles
Browse latest Browse all 61806

Trending Articles



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